@plentymarkets/shop-api / doPreparePayment
Function: doPreparePayment() ​
doPreparePayment(
context
):Promise
<Data
<PreparePaymentResult
>>
Method doPreparePayment - Used to prepare the payment.
Parameters ​
• context: PlentysystemsIntegrationContext
Returns ​
Promise
<Data
<PreparePaymentResult
>>
type: strig, value: null
Remarks ​
- Calls /rest/storefront/checkout/payment
- Method should be used to prepare the payment.
Example ​
ts
const { data } = await useSdk().plentysystems.doPreparePayment();