mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 05:20:56 -04: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()) {
|
if ($tokenResponse->isSuccessful()) {
|
||||||
$customerReference = $tokenResponse->getCustomerData()->id;
|
$customerReference = $tokenResponse->getCustomerData()->id;
|
||||||
} else {
|
} else {
|
||||||
Utils::logError($tokenResponse->getMessage());
|
Utils::logError('Failed to create Braintree customer: ' . $tokenResponse->getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ class BraintreePaymentDriver extends BasePaymentDriver
|
|||||||
if ($tokenResponse->isSuccessful()) {
|
if ($tokenResponse->isSuccessful()) {
|
||||||
$this->tokenResponse = $tokenResponse->getData()->paymentMethod;
|
$this->tokenResponse = $tokenResponse->getData()->paymentMethod;
|
||||||
} else {
|
} else {
|
||||||
Utils::logError($tokenResponse->getMessage());
|
Utils::logError('Failed to create Braintree token: ' . $tokenResponse->getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user