PayPalPayment::createPayPalPayment()
Create PayPal order from OrderPage
PayPalPayment::createPayPalPayment(Wagnerwagner\Merx\OrderPage $virtualOrderPage, string $currency): array
Parameters
| Name | Type | Default |
|---|---|---|
$virtualOrderPage |
OrderPage |
- |
$currency |
string |
- |
Return type
array
PayPal order details.
- 'id': (string) The ID of the order.
- 'status': (string) The order status.
- 'payment_source': (array) The payment source used to fund the payment.
- 'links': (array) An array of request-related HATEOAS links. To complete payer approval, use the approve link to redirect the payer.