Braintree v0.7.0 Braintree.PaypalAccount
Find, update and delete Paypal Accounts using PaymentMethod token
Summary
Functions
Convert a response into one or more typed structs
Delete a paypal account record using token
or return an error
response if the token is invalid
Find a paypal account record using token
or return an error
response if the token is invalid
Update a paypal account record using token
or return an error
response if the token is invalid
Types
Functions
Convert a response into one or more typed structs.
Specs
delete(String.t) ::
{:ok, t} |
{:error, Braintree.ErrorResponse.t}
Delete a paypal account record using token
or return an error
response if the token is invalid.
Example
{:ok, paypal_account} = Braintree.PaypalAccount.delete(token)
Specs
find(String.t) ::
{:ok, t} |
{:error, Braintree.ErrorResponse.t}
Find a paypal account record using token
or return an error
response if the token is invalid.
Example
{:ok, paypal_account} = Braintree.PaypalAccount.find(token)
Specs
update(String.t, Map.t) ::
{:ok, t} |
{:error, Braintree.ErrorResponse.t}
Update a paypal account record using token
or return an error
response if the token is invalid.
Example
{:ok, paypal_account} = Braintree.PaypalAccount.update(
token,
%{options: %{make_default: true}
)