Przeglądaj źródła

提交shopify的支付方式

lvhao 3 dni temu
rodzic
commit
837abb4d6d
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8 0
      core/CoreApp/models/Model_api.php

+ 8 - 0
core/CoreApp/models/Model_api.php

@@ -191,6 +191,9 @@ function __construct(){
 							else if(stripos($v['gateway'],'Afterpay') !== false || stripos($v['gateway'],'afterpay') !== false){
 								$pay ="afterpaypayovertime";
 							}
+							else if(stripos($v['gateway'],'Airwallex') !== false || stripos($v['gateway'],'Airwallex') !== false){
+								$pay ="custompaymentmethod";
+							}
 							else
 							{
 								$pay = $v['gateway'];
@@ -219,6 +222,9 @@ function __construct(){
 								else if(stripos($v['payment_gateway_names'][0],'Afterpay') !== false ){
 									$pay ="afterpaypayovertime";
 								}
+								else if(stripos($v['payment_gateway_names'][0],'Airwallex') !== false ){
+									$pay ="custompaymentmethod";
+								}
 								else
 								{
 									$pay = isset($v['payment_gateway_names'][0])?$v['payment_gateway_names'][0]:"";
@@ -618,6 +624,8 @@ function __construct(){
 			return array('g'=>1,'d'=>$a['transactions'][0]['payment_id'],'protection_eligibility'=>"");
 		}elseif(stripos($a['transactions'][0]['gateway'],'Afterpay') !== false){
 			return array('g'=>1,'d'=>$a['transactions'][0]['payment_id'],'protection_eligibility'=>"");
+		}elseif(stripos($a['transactions'][0]['gateway'],'Airwallex') !== false){
+			return array('g'=>1,'d'=>$a['transactions'][0]['payment_id'],'protection_eligibility'=>"");
 		}else{
 			$a['transactions'] = array_reverse($a['transactions']);
 			if(isset($a['transactions'][0]['authorization']))