pay_pal v0.0.5 PayPal.Payments.Authorizations
Documentation for PayPal.Payments.Authorizations
https://developer.paypal.com/docs/api/payments/#authorization
Link to this section Summary
Functions
Capture an authorization
Reauthorize a payment
Show an authorization
Void an authorization
Link to this section Functions
Link to this function
capture(authorization_id, params)
Capture an authorization
Possible returns:
- {:ok, capture}
- {:error, reason}
Examples
iex> PayPal.Payments.Authorizations.capture(authorization_id, %{
amount: %{
currency: "USD",
amount: "4.54"
},
is_final_capture: true
})
Link to this function
reauthorize(authorization_id, params)
Reauthorize a payment
Possible returns:
- {:ok, authorization}
- {:error, reason}
Examples
iex> PayPal.Payments.Authorizations.capture(authorization_id, %{
amount: %{
currency: "USD",
amount: "4.54"
}
})
Show an authorization
Possible returns:
- {:ok, authorization}
- {:error, reason}
Examples
iex> PayPal.Payments.Authorizations.show(authorization_id)