@plentymarkets/shop-api / doCreateMolliePaymentFromBasket
Function: doCreateMolliePaymentFromBasket() ​
doCreateMolliePaymentFromBasket(
context
,params
):Promise
<Data
<MolliePayment
>>
Defined in: api/doCreateMolliePaymentFromBasket/index.ts:18
Method doCreateMolliePaymentFromBasket - Creates a Mollie payment from the current basket. It's necessary to have a basket with items, correct addresses and a mollie payment selected.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise
<Data
<MolliePayment
>>
MolliePayment
Remarks ​
- Calls /rest/mollie/basket_to_mollie_payment/ endpoint.
- This method is used to create a Mollie payment from the current basket.
Example ​
ts
const { data } = await useSdk().plentysystems.doCreateMolliePaymentFromBasket();