Fix for adding new cards with Braintree
This commit is contained in:
parent
ed09cb3c78
commit
d88a07e88d
1 changed files with 2 additions and 2 deletions
|
|
@ -108,7 +108,7 @@ class BraintreePaymentDriver extends BasePaymentDriver
|
|||
if ($tokenResponse->isSuccessful()) {
|
||||
$customerReference = $tokenResponse->getCustomerData()->id;
|
||||
} else {
|
||||
Utils::logError($tokenResponse->getMessage());
|
||||
Utils::logError('Failed to create Braintree customer: ' . $tokenResponse->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -124,7 +124,7 @@ class BraintreePaymentDriver extends BasePaymentDriver
|
|||
if ($tokenResponse->isSuccessful()) {
|
||||
$this->tokenResponse = $tokenResponse->getData()->paymentMethod;
|
||||
} else {
|
||||
Utils::logError($tokenResponse->getMessage());
|
||||
Utils::logError('Failed to create Braintree token: ' . $tokenResponse->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue