Class: SpreeStripe::CreateTaxTransactionJob
- Defined in:
- app/jobs/spree_stripe/create_tax_transaction_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(store_id, payment_intent_id, tax_calculation_id) ⇒ Object
3 4 5 6 7 8 |
# File 'app/jobs/spree_stripe/create_tax_transaction_job.rb', line 3 def perform(store_id, payment_intent_id, tax_calculation_id) store = Spree::Store.find(store_id) gateway = store.stripe_gateway gateway.create_tax_transaction(payment_intent_id, tax_calculation_id) if gateway.present? end |