File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -390,6 +390,13 @@ public function captureAcdcOrder(): void
390390
391391 $ this ->outputJson ($ result );
392392 }
393+
394+ public function isPayPalCheckoutPayment (): bool
395+ {
396+ $ payment = $ this ->getPayment ();
397+ return $ payment && PayPalDefinitions::isPayPalPayment ($ payment ->getId ());
398+ }
399+
393400 public function createApplePayOrder (): void
394401 {
395402 try {
Original file line number Diff line number Diff line change 11[{ $smarty .block .parent} ]
2- [{ include file= ' modules/osc/paypal/base_paypal_payment_controller_config.tpl' } ]
3- [{ include file= ' modules/osc/paypal/base_paypal_button_config.tpl' } ]
42[{ include file= ' modules/osc/paypal/base_js.tpl' } ]
3+ [{ if method_exists($oView , ' getPayment' ) && $oView -> isPayPalCheckoutPayment ()} ]
4+ [{ include file= ' modules/osc/paypal/base_paypal_payment_controller_config.tpl' } ]
5+ [{ include file= ' modules/osc/paypal/base_paypal_button_config.tpl' } ]
6+ [{ /if } ]
Original file line number Diff line number Diff line change 22[{ assign var= " paymentId" value= $payment -> getId ()} ]
33
44[{ if " oscpaypal" == $paymentId } ]
5- <div id =" [{ $paymentId } ]" class =" paypal-button-container [{ $buttonClass } ]" ></div >
5+ [{ $oViewConf -> setSDKIsNecessary ()} ]
6+ <div id =" [{ $paymentId } ]" class =" paypal-button-container [{ $buttonClass } ] float-right pull-right" ></div >
67[{ /if } ]
78
89[{ if " oscpaypal_pui" == $paymentId } ]
910 [{ if $oViewConf -> isFlowCompatibleTheme ()} ]
10- [{ include file= " modules/osc/paypal/checkout_order_btn_submit_bottom_flow.tpl" } ]
11+ [{ include file= " modules/osc/paypal/checkout_order_btn_submit_bottom_flow.tpl" } ]
1112 [{ else } ]
12- [{ include file= " modules/osc/paypal/checkout_order_btn_submit_bottom_wave.tpl" } ]
13- [{ /if } ]
13+ [{ include file= " modules/osc/paypal/checkout_order_btn_submit_bottom_wave.tpl" } ]
1414 [{ /if } ]
15+ [{ /if } ]
1516
1617[{ if " oscpaypal_googlepay" == $paymentId } ]
1718 [{ include file= " modules/osc/paypal/googlepay.tpl" buttonClass= " paypal-button-wrapper large" } ]
18- [{ elseif " oscpaypal_applepay" == $paymentId } ]
19+ [{ elseif " oscpaypal_applepay" == $paymentId } ]
1920 [{ include file= " modules/osc/paypal/applepay.tpl" paymentId= $paymentId buttonClass= " paypal-button-wrapper large" } ]
2021 <div id =" applepay-container" class =" paypal-button-container paypal-button-wrapper paypal-button-right large" ></div >
2122[{ elseif " oscpaypal" != $paymentId } ]
You can’t perform that action at this time.
0 commit comments