File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,9 +43,11 @@ function getSubscription($subscriptionId)
4343 echo "Customer Profile ID: " . $ response ->getSubscription ()->getProfile ()->getCustomerProfileId () . "\n" ;
4444 echo "Customer payment Profile ID: " . $ response ->getSubscription ()->getProfile ()->getPaymentProfile ()->getCustomerPaymentProfileId () . "\n" ;
4545 $ transactions = $ response ->getSubscription ()->getArbTransactions ();
46- foreach ($ transactions as $ transaction ) {
47- echo "Transaction ID : " .$ transaction ->getTransId ()." -- " .$ transaction ->getResponse ()." -- Pay Number : " .$ transaction ->getPayNum ()."\n" ;
48- }
46+ if ($ transactions != null ){
47+ foreach ($ transactions as $ transaction ) {
48+ echo "Transaction ID : " .$ transaction ->getTransId ()." -- " .$ transaction ->getResponse ()." -- Pay Number : " .$ transaction ->getPayNum ()."\n" ;
49+ }
50+ }
4951 }
5052 else
5153 {
You can’t perform that action at this time.
0 commit comments