|
@@ -656,7 +656,13 @@ function __construct(){
|
|
|
return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
|
}elseif(stripos($end_info['gateway'],'Airwallex') !== false){
|
|
}elseif(stripos($end_info['gateway'],'Airwallex') !== false){
|
|
|
return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
|
- }else{
|
|
|
|
|
|
|
+ }elseif(stripos($end_info['gateway'],'gift_card') !== false){
|
|
|
|
|
+ $tram_list = $a['transactions'];
|
|
|
|
|
+ $tram_list = array_reverse($tram_list);
|
|
|
|
|
+ $end_info = $tram_list[1];
|
|
|
|
|
+ return array('g'=>1,'d'=>$end_info['payment_id'],'protection_eligibility'=>"");
|
|
|
|
|
+ }
|
|
|
|
|
+ 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']))
|
|
|
{
|
|
{
|