1
0
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:
Hillel Coren 2017-08-11 10:59:12 +03:00
parent ed09cb3c78
commit d88a07e88d

View File

@ -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;
}
}