pay_pal v0.0.5 PayPal.Payments.Orders
Documentation for PayPal.Payments.Orders
https://developer.paypal.com/docs/api/payments/#order
Link to this section Summary
Link to this section Functions
Authorize an order
Possible returns:
- {:ok, refund}
- {:error, refund}
Examples
iex> PayPal.Payments.Orders.authorize(order_id, %{
amount: %{
total: "1.50",
currency: "USD"
}
})
Capture an order
Possible returns:
- {:ok, capture}
- {:error, refund}
Examples
iex> PayPal.Payments.Orders.capture(order_id, %{
amount: %{
total: "1.50",
currency: "USD"
},
is_final_capture: true
})
Show an order
Possible returns:
- {:ok, order}
- {:error, reason}
Examples
iex> PayPal.Payments.Orders.show(order_id)