Module: ActiveMerchant::Billing::StripeGatewayDecorator
- Defined in:
- lib/active_merchant/billing/stripe_gateway_decorator.rb
Instance Method Summary collapse
Instance Method Details
#retrieve(source, **options) ⇒ Object
11 12 13 14 15 |
# File 'lib/active_merchant/billing/stripe_gateway_decorator.rb', line 11 def retrieve(source, **) 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) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/active_merchant/billing/stripe_gateway_decorator.rb', line 4 def verify(source, **) 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: [:amounts]) end |