Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lewisbhs's avatar

Payments with Braintree Fail

Hi,

Why do payments with the braintree sandbox fail? I've tried with both credit cards and the sandbox paypal login. "We had trouble validating your card. It's possible your card provider is preventing us from charging the card. Please contact your card provider or customer support."

Thanks in advance.

0 likes
3 replies
lewisbhs's avatar

This is returned in inspect element:

app.js:23348 GET http://DOMAIN/coupon/user/2 500 (Internal Server Error)(anonymous function) @ app.js:23348tryCallTwo @ app.js:16736doResolve @ app.js:16891Promise @ app.js:16757Promise$1 @ app.js:22955xhrClient @ app.js:23307Client @ app.js:23354(anonymous function) @ app.js:23282tryCallOne @ app.js:16728(anonymous function) @ app.js:16814flush @ app.js:17375
app.js:23348 POST http://DOMAIN/settings/subscription 500 (Internal Server Error)(anonymous function) @ app.js:23348tryCallTwo @ app.js:16736doResolve @ app.js:16891Promise @ app.js:16757Promise$1 @ app.js:22955xhrClient @ app.js:23307Client @ app.js:23354(anonymous function) @ app.js:23282tryCallOne @ app.js:16728(anonymous function) @ app.js:16814flush @ app.js:17375
lewisbhs's avatar

Found another log:

[2016-08-02 20:38:25] local.ERROR: exception 'Exception' with message 'Braintree was unable to create a payment method: Cannot use a payment_method_nonce more than once.' in project/vendor/laravel/cashier-braintree/src/Billable.php:277 Stack trace:
lewisbhs's avatar
lewisbhs
OP
Best Answer
Level 1

This issue has been fixed, it was caused by the plan not being defined inside braintree.

Please or to participate in this conversation.