|
|
@@ -213,7 +213,11 @@ function __construct(){
|
|
|
}
|
|
|
else if(stripos($v['payment_gateway_names'][0],'gift_card') !== false)
|
|
|
{
|
|
|
- $pay = 'gift_card';
|
|
|
+ if(isset($v['payment_gateway_names'][1])){
|
|
|
+ $pay = $this->checkPay($v['payment_gateway_names'][1]);
|
|
|
+ }else{
|
|
|
+ $pay = 'gift_card';
|
|
|
+ }
|
|
|
}
|
|
|
else if(stripos($v['payment_gateway_names'][0],'shop_cash') !== false)
|
|
|
{
|
|
|
@@ -554,6 +558,35 @@ function __construct(){
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public function checkPay($gateway){
|
|
|
+ if(stripos($gateway,'shopify_') !== false)
|
|
|
+ {
|
|
|
+ $pay = 'shopifypay';
|
|
|
+ }
|
|
|
+ else if(stripos($gateway,'paypal') !== false)
|
|
|
+ {
|
|
|
+ $pay = 'paypal_express';
|
|
|
+ }
|
|
|
+ else if(stripos($gateway,'shop_cash') !== false)
|
|
|
+ {
|
|
|
+ $pay = 'shop_cash';
|
|
|
+ }
|
|
|
+ else if(stripos($gateway,'Klarna') !== false || stripos($gateway,'klarna') !== false){
|
|
|
+ $pay ="klarna_payments";
|
|
|
+ }
|
|
|
+ else if(stripos($gateway,'Afterpay') !== false || stripos($gateway,'afterpay') !== false){
|
|
|
+ $pay ="afterpaypayovertime";
|
|
|
+ }
|
|
|
+ else if(stripos($gateway,'Airwallex') !== false || stripos($gateway,'Airwallex') !== false){
|
|
|
+ $pay ="custompaymentmethod";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ $pay = $gateway;
|
|
|
+ }
|
|
|
+ return $pay;
|
|
|
+ }
|
|
|
|
|
|
public function authorid($link,$tweak)
|
|
|
{
|