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