@plentymarkets/shop-api / doCapturePayPalOrderV2
Function: doCapturePayPalOrderV2() ​
doCapturePayPalOrderV2(
context,params):Promise<Data<PayPalOrderStatus>>
Defined in: api/paypalModule/doCapturePayPalOrderV2/index.ts:22
Method doCapturePayPalOrderV2 - Used to get a capture a PayPal order.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise<Data<PayPalOrderStatus>>
Remarks ​
- Calls /rest/paypal/capture/order/:paypalOrderId
- Method should be used to capture a PayPal order.
Example ​
ts
const { data } = await useSdk().plentysystems.doCapturePayPalOrderV2({ paypalOrderId: 'paypal-123' });