Just thought I would pass along that it appears the definition for the $errorMessages variable got left out from the last commit in this example.
Assuming this is the missing code, from the previous commit.
$errorMessages = $response->getMessages()->getMessage();
Example reference:
|
echo "Failed to Update Customer Payment Profile : " . $errorMessages[0]->getCode() . " " .$errorMessages[0]->getText() . "\n"; |
Just thought I would pass along that it appears the definition for the $errorMessages variable got left out from the last commit in this example.
Assuming this is the missing code, from the previous commit.
Example reference:
sample-code-php/CustomerProfiles/update-customer-payment-profile.php
Line 79 in 6e1dcf6