module ActiveMerchant::Billing::StripeGatewayDecorator
Public Instance Methods
retrieve(source, **options)
click to toggle source
# File lib/active_merchant/billing/stripe_gateway_decorator.rb, line 11 def retrieve(source, **options) customer = source.gateway_customer_profile_id bank_account_token = source.gateway_payment_profile_id commit(:get, "customers/#{CGI.escape(customer)}/bank_accounts/#{bank_account_token}") end
verify(source, **options)
click to toggle source
# File lib/active_merchant/billing/stripe_gateway_decorator.rb, line 4 def verify(source, **options) customer = source.gateway_customer_profile_id bank_account_token = source.gateway_payment_profile_id commit(:post, "customers/#{CGI.escape(customer)}/sources/#{bank_account_token}/verify", amounts: options[:amounts]) end
Private Instance Methods
add_customer_data(post, options)
click to toggle source
Calls superclass method
# File lib/active_merchant/billing/stripe_gateway_decorator.rb, line 25 def add_customer_data(post, options) super post[:payment_user_agent] = "SpreeGateway/#{SpreeGateway.version}" end
headers(options = {})
click to toggle source
Calls superclass method
# File lib/active_merchant/billing/stripe_gateway_decorator.rb, line 19 def headers(options = {}) headers = super headers['User-Agent'] = headers['X-Stripe-Client-User-Agent'] headers end