|
|
@@ -827,11 +827,14 @@ function __construct(){
|
|
|
$protection_eligibility = $a['transactions'][0]['receipt']['protection_eligibility'];
|
|
|
}elseif(isset($a['transactions'][0]['receipt']['purchase_units'])){
|
|
|
if(!empty($a['transactions'][0]['receipt']['purchase_units'])){
|
|
|
- if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['captures'][0]['seller_protection'])){
|
|
|
- if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['captures'][0]['seller_protection']['status'])){
|
|
|
- $protection_eligibility = $a['transactions'][0]['receipt']['purchase_units'][0]['captures'][0]['seller_protection']['status'];
|
|
|
+ if(!empty($a['transactions'][0]['receipt']['purchase_units'][0]['payments'])){
|
|
|
+ if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['payments']['captures'][0]['seller_protection'])){
|
|
|
+ if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['payments']['captures'][0]['seller_protection']['status'])){
|
|
|
+ $protection_eligibility = $a['transactions'][0]['receipt']['purchase_units'][0]['payments']['captures'][0]['seller_protection']['status'];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -863,11 +866,14 @@ function __construct(){
|
|
|
$protection_eligibility = $a['transactions'][0]['receipt']['protection_eligibility'];
|
|
|
}elseif(isset($a['transactions'][0]['receipt']['purchase_units'])){
|
|
|
if(!empty($a['transactions'][0]['receipt']['purchase_units'])){
|
|
|
- if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['captures'][0]['seller_protection'])){
|
|
|
- if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['captures'][0]['seller_protection']['status'])){
|
|
|
- $protection_eligibility = $a['transactions'][0]['receipt']['purchase_units'][0]['captures'][0]['seller_protection']['status'];
|
|
|
+ if(!empty($a['transactions'][0]['receipt']['purchase_units'][0]['payments'])){
|
|
|
+ if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['payments']['captures'][0]['seller_protection'])){
|
|
|
+ if(isset($a['transactions'][0]['receipt']['purchase_units'][0]['payments']['captures'][0]['seller_protection']['status'])){
|
|
|
+ $protection_eligibility = $a['transactions'][0]['receipt']['purchase_units'][0]['payments']['captures'][0]['seller_protection']['status'];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|