|
|
@@ -197,6 +197,9 @@ function __construct(){
|
|
|
else if(stripos($v['gateway'],'Afterpay') !== false || stripos($v['gateway'],'afterpay') !== false){
|
|
|
$pay ="afterpaypayovertime";
|
|
|
}
|
|
|
+ else if(stripos($v['gateway'],'Clearpay') !== false || stripos($v['gateway'],'clearpay') !== false){
|
|
|
+ $pay ="clearpaypayovertime";
|
|
|
+ }
|
|
|
else if(stripos($v['gateway'],'Airwallex') !== false || stripos($v['gateway'],'Airwallex') !== false){
|
|
|
$pay ="custompaymentmethod";
|
|
|
}
|
|
|
@@ -243,6 +246,8 @@ function __construct(){
|
|
|
}
|
|
|
else if(stripos($v['payment_gateway_names'][0],'Airwallex') !== false ){
|
|
|
$pay ="custompaymentmethod";
|
|
|
+ }else if(stripos($v['payment_gateway_names'][0],'Clearpay') !== false || stripos($v['payment_gateway_names'][0],'clearpay') !== false){
|
|
|
+ $pay ="clearpaypayovertime";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -689,6 +694,8 @@ function __construct(){
|
|
|
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'=>"");
|
|
|
+ }elseif(stripos($a['transactions'][0]['gateway'],'Clearpay') !== 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']))
|
|
|
@@ -733,6 +740,8 @@ function __construct(){
|
|
|
return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
|
}elseif(stripos($end_info['gateway'],'Airwallex') !== false){
|
|
|
return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
|
+ }elseif(stripos($end_info['gateway'],'Clearpay') !== false){
|
|
|
+ return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
|
}
|
|
|
else{
|
|
|
$a['transactions'] = array_reverse($a['transactions']);
|