From cb29d050695ceed429c4a4e9c5424556c46e957d Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Mon, 14 Dec 2020 11:54:03 -0800 Subject: [PATCH] use `purchase` to charge offline for Stripe Connect --- app/models/spree/gateway/stripe_connect.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/spree/gateway/stripe_connect.rb b/app/models/spree/gateway/stripe_connect.rb index 3484dc3e4f..493b9bd74e 100644 --- a/app/models/spree/gateway/stripe_connect.rb +++ b/app/models/spree/gateway/stripe_connect.rb @@ -31,6 +31,10 @@ module Spree failed_activemerchant_billing_response(e.message) end + def charge_offline(money, creditcard, gateway_options) + purchase(money, creditcard, gateway_options) + end + # NOTE: the name of this method is determined by Spree::Payment::Processing def void(response_code, _creditcard, gateway_options) gateway_options[:stripe_account] = stripe_account_id