pay_pal v0.0.2 PayPal.Payments.Orders
Documentation for PayPal.Payments.Orders
https://developer.paypal.com/docs/api/payments/#order
Summary
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
})