Add stripe_sca, paypal, check payment method

Stripe_sca use the same template than stripe
This commit is contained in:
Jean-Baptiste Bellet
2021-11-25 12:23:38 +01:00
committed by Matt-Yorkley
parent e89caf7a0d
commit f9b0798c88
3 changed files with 7 additions and 5 deletions

View File

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

View File

@@ -0,0 +1 @@
-# This file intentionally overrides the view in the spree_paypal_express gem