Skip to content

Commit b7169cd

Browse files
author
brianmc
committed
Removed all the 5.4 dependencies
1 parent 9471da7 commit b7169cd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CustomerProfiles/create-customer-profile.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ function createCustomerProfile($email){
5959
if (($response != null) && ($response->getMessages()->getResultCode() == "Ok") )
6060
{
6161
echo "Succesfully create customer profile : " . $response->getCustomerProfileId() . "\n";
62-
echo "SUCCESS: PAYMENT PROFILE ID : " . $response->getCustomerPaymentProfileIdList()[0] . "\n";
62+
$paymentProfiles = $response->getCustomerPaymentProfileIdList();
63+
echo "SUCCESS: PAYMENT PROFILE ID : " . $paymentProfiles[0] . "\n";
6364
}
6465
else
6566
{

0 commit comments

Comments
 (0)