PayPalPayment::executePayPalPayment()
Capture PayPal payment for order
PayPalPayment::executePayPalPayment(string $payPalOrderId): array
Parameters
| Name | Type | Default |
|---|---|---|
$payPalOrderId |
string |
- |
Return type
array
Captured PayPal payment details
- 'id': (string) The ID of the order.
- 'status': (string) The order status.
- 'payment_source': (array) The payment source used to fund the payment.
- 'purchase_units': (array) An array of purchase units.
- 'payer': (array) The customer who approves and pays for the order. The customer is also known as the payer.
- 'links': (array) An array of request-related HATEOAS links.