Braintree.PaypalAccount (Braintree v0.13.0)
Find, update and delete Paypal Accounts using PaymentMethod token
Link to this section Summary
Functions
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.
Link to this section Types
@type t() :: %Braintree.PaypalAccount{ billing_agreement_id: String.t(), created_at: String.t(), customer_id: String.t(), default: boolean(), email: String.t(), image_url: String.t(), is_channel_initated: boolean(), payer_info: String.t(), subscriptions: [any()], token: String.t(), updated_at: String.t() }
Link to this section Functions
Link to this function
delete(token, opts \\ [])
@spec delete(String.t(), Keyword.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
Example
{:ok, paypal_account} = Braintree.PaypalAccount.delete(token)
Link to this function
find(token, opts \\ [])
@spec find(String.t(), Keyword.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
Example
{:ok, paypal_account} = Braintree.PaypalAccount.find(token)
Link to this function
new(params)
Link to this function
update(token, params, opts \\ [])
@spec update(String.t(), map(), Keyword.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
Example
{:ok, paypal_account} = Braintree.PaypalAccount.update(
token,
%{options: %{make_default: true}
)