Magento – Transaction has been declined. Please try again later. – Error when invoicing

braintreemagento2payment-gatewaypayment-methodspaypal

We're using Braintree to process payments (MCE 2.1.7) and are running into issues where on the braintree/paypal side of things, everything gets processed and goes through fine, and we've been able to authorize, process and submit for settlement via the Braintree admin panel, however, when we attempt to create an invoice and capture the payment from the Magento admin, we keep receiving the following error:

Transaction has been declined. Please try again later.

Has anybody experienced similar issues?

Best Answer

I just came across this issue when troubleshooting for a client earlier today. There is a bug with a work around, and a mismatch between accepted credit cards which can cause this.

Weltpixel (not affiliated) has a very nice write up on three possible solutions which helped me quickly resolve the issue.

https://support.weltpixel.com/hc/en-us/articles/115007753688-How-we-solved-Braintree-Magento-2-checkout-issues-with-our-Magento-2-1-store