@plentymarkets/shop-api / doCreateMolliePaymentFromBasket
Function: doCreateMolliePaymentFromBasket() ​
doCreateMolliePaymentFromBasket(
context
):Promise
<Data
<MolliePayment
>>
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
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();