@plentymarkets/shop-api / doExecutePayment
Function: doExecutePayment() ​
doExecutePayment(
context,params):Promise<Data<GetPaymentResponse>>
Defined in: api/doExecutePayment/index.ts:27
Method doExecutePayment - Used to execute the payment.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
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
});