class Braintree::PayPalAccount
Attributes
billing_agreement_id[R]
created_at[R]
customer_id[R]
email[R]
image_url[R]
payer_id[R]
revoked_at[R]
subscriptions[R]
token[R]
updated_at[R]
Public Class Methods
_new(*args)
click to toggle source
# File lib/braintree/paypal_account.rb, line 26 def self._new(*args) self.new(*args) end
create(attributes)
click to toggle source
# File lib/braintree/paypal_account.rb, line 30 def self.create(attributes) Configuration.gateway.paypal_account.create(attributes) end
delete(token)
click to toggle source
# File lib/braintree/paypal_account.rb, line 42 def self.delete(token) Configuration.gateway.paypal_account.delete(token) end
find(token)
click to toggle source
# File lib/braintree/paypal_account.rb, line 34 def self.find(token) Configuration.gateway.paypal_account.find(token) end
sale(token, transaction_attributes)
click to toggle source
# File lib/braintree/paypal_account.rb, line 46 def self.sale(token, transaction_attributes) Configuration.gateway.transaction.sale(transaction_attributes.merge(:payment_method_token => token)) end
sale!(token, transaction_attributes)
click to toggle source
# File lib/braintree/paypal_account.rb, line 50 def self.sale!(token, transaction_attributes) return_object_or_raise(:transaction) { sale(token, transaction_attributes) } end
update(token, attributes)
click to toggle source
# File lib/braintree/paypal_account.rb, line 38 def self.update(token, attributes) Configuration.gateway.paypal_account.update(token, attributes) end
Public Instance Methods
default?()
click to toggle source
Returns true if this paypal account is the customer's default payment method.
# File lib/braintree/paypal_account.rb, line 55 def default? @default end