mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Add stripe_sca, paypal, check payment method
Stripe_sca use the same template than stripe
This commit is contained in:
committed by
Matt-Yorkley
parent
e89caf7a0d
commit
f9b0798c88
@@ -22,11 +22,12 @@
|
||||
.paymentmethod-description.panel
|
||||
#{payment_method.description}
|
||||
.paymentmethod-form
|
||||
- if payment_method.method_type == "gateway" || payment_method.method_type == "stripe"
|
||||
= render partial: "split_checkout/payment/#{payment_method.method_type}", locals: { payment_method: payment_method, f: f }
|
||||
- else
|
||||
= render partial: "spree/checkout/payment/#{payment_method.method_type}", :locals => { payment_method: payment_method }
|
||||
|
||||
- if payment_method.method_type == "stripe_sca"
|
||||
- method = "stripe"
|
||||
-else
|
||||
- method = payment_method.method_type
|
||||
= render partial: "split_checkout/payment/#{method}", locals: { payment_method: payment_method, f: f }
|
||||
|
||||
%div.checkout-substep
|
||||
= t("split_checkout.step2.explaination")
|
||||
|
||||
|
||||
0
app/views/split_checkout/payment/_check.html.erb
Normal file
0
app/views/split_checkout/payment/_check.html.erb
Normal file
1
app/views/split_checkout/payment/_paypal.html.haml
Normal file
1
app/views/split_checkout/payment/_paypal.html.haml
Normal file
@@ -0,0 +1 @@
|
||||
-# This file intentionally overrides the view in the spree_paypal_express gem
|
||||
Reference in New Issue
Block a user