mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix for adding new cards with Braintree
This commit is contained in:
parent
ed09cb3c78
commit
d88a07e88d
@ -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…
Reference in New Issue
Block a user