@plentymarkets/shop-api / doCapturePayPalOrderV2
Function: doCapturePayPalOrderV2() ​
doCapturePayPalOrderV2(
context
,params
):Promise
<Data
<PayPalOrderStatus
>>
Method doCapturePayPalOrderV2 - Used to get a capture a PayPal order.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: PayPalGetOrderRequest
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' });