use purchase to charge offline for Stripe Connect

This commit is contained in:
Andy Brett
2020-12-14 11:54:03 -08:00
parent 3b7313f7e3
commit cb29d05069

View File

@@ -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