pay_pal v0.0.2 PayPal.Payments.Authorizations

Documentation for PayPal.Payments.Authorizations

https://developer.paypal.com/docs/api/payments/#authorization

Summary

Functions

Capture an authorization

Show an authorization

Void an authorization

Functions

capture(authorization_id, params)
capture(String.t, map) :: {atom, any}

Capture an authorization

docs

Possible returns:

  • {:ok, capture}
  • {:error, reason}

Examples

iex> PayPal.Payments.Authorizations.capture(authorization_id, %{

amount: %{
  currency: "USD",
  amount: "4.54"
},
is_final_capture: true

})

reauthorize(authorization_id, params)
reauthorize(String.t, map) :: {atom, any}

Reauthorize a payment

docs

Possible returns:

  • {:ok, authorization}
  • {:error, reason}

Examples

iex> PayPal.Payments.Authorizations.capture(authorization_id, %{

amount: %{
  currency: "USD",
  amount: "4.54"
}

})

show(authorization_id)
show(String.t) :: {atom, any}

Show an authorization

docs

Possible returns:

  • {:ok, authorization}
  • {:error, reason}

Examples

iex> PayPal.Payments.Authorizations.show(authorization_id)

void(authorization_id)
void(String.t) :: {atom, any}

Void an authorization

docs

Possible returns:

  • {:ok, authorization}
  • {:error, reason}

Examples

iex> PayPal.Payments.Authorizations.void(authorization_id)