@plentymarkets/shop-api / doExecutePayment
Function: doExecutePayment() ​
doExecutePayment(
context
,params
):Promise
<Data
<GetPaymentResponse
>>
Method doExecutePayment - Used to execute the payment.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: ExecutePaymentParams
orderId: number, paymentId: number,
Returns ​
Promise
<Data
<GetPaymentResponse
>>
type: null, value: null
Remarks ​
- Calls /rest/storefront/checkout/payment/execute
- Method should be used to execute the payment.
Example ​
ts
const { data } = await useSdk().plentysystems.doExecutePayment({
orderId: 1123,
paymentId: 123
});