Closed McDev814 closed 7 years ago
Hi, @McDev814, the outdated curl version might cause such problem. To find an original reason, you need to debug \Braintree\Http::_doUrlRequest
method.
The dynamic descriptors
are not enabled in the account by default https://developers.braintreepayments.com/reference/request/transaction/sale/php#descriptor and
name
should be separated by an asterisk (*) https://developers.braintreepayments.com/reference/request/transaction/sale/php#dynamic-descriptors.
I've updated curl from version 7.47 to 7.55, though that just broke it even further. After upgrading curl, the payment page is unable to load the payment options. I restored it back to 7.47
I requested from Braintree that they enable dynamic descriptors, though they informed me they were already enabled. After learning more about dynamic descriptors, I decided they were unnecessary in our case, especially if they were causing problems. I cleared all data from the dynamic descriptor settings under Stores->Configuration->Sales->Payment Methods->Braintree->Dynamic Descriptors and cleared the cache. The problem is still persisting, though the debug.log no longer has descriptor information included in the array on failed transactions.
I'm not sure where to start on debugging the \Braintree\Http::_doUrlRequest
method, I'm not a php developer. I know enough about programming to know what a method is, but I've never studied or worked with php, do you have any suggestions on how to debug it in the least amount of time given my skill level?
You need to use some IDE like PHPStorm and enable xdebug extension for PHP https://www.jetbrains.com/help/phpstorm/2016.3/run-debug-configuration-php-remote-debug.html. After that, you need to set a breakpoint on https://github.com/braintree/braintree_php/blob/master/lib/Braintree/Http.php#L177 to find original error code and a message from curl response.
Try to see if it's related to street 2..
Thank you kervin,
I had tried that before posting this, though the problem still persisted. We are having someone add Braintree error logging and are hoping it will be pulled upstream. I know we're not the first ones who could have benefited from knowing what errors are occurring, and I'm sure we won't be the last. I'll update this thread once that development is done and tested.
i think i have similar issue
@McDev814, thank you for your report. We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue. We tested the issue on 2.3.0-dev, 2.2.0, 2.1.9
I am having the same issue, Any solution?
2.4.6 and I'm experiencing the same errors. Still.
[2024-09-24T02:51:27.510781+00:00] report.CRITICAL: Braintree error response. [] [] [2024-09-24T02:51:27.510781+00:00] report.CRITICAL: Braintree error response. [] [] [2024-09-24T02:51:27.511337+00:00] report.CRITICAL: Wrong transaction status [] [] [2024-09-24T02:51:27.511337+00:00] report.CRITICAL: Wrong transaction status [] [] [2024-09-24T02:52:03.137090+00:00] report.CRITICAL: Braintree error response. [] [] [2024-09-24T02:52:03.137090+00:00] report.CRITICAL: Braintree error response. [] [] [2024-09-24T02:52:03.137634+00:00] report.CRITICAL: Wrong transaction status [] [] [2024-09-24T02:52:03.137634+00:00] report.CRITICAL: Wrong transaction status [] []
After setting up a braintree sandbox account and entering merchant id, private and public keys, I tried to run a test transaction within the dollar range suggested in the braintree dev docs. The attempted transaction resulted with 'An error occurred on the server. Please try to place the order again.'
I know this issue has been raised before, but none of the suggested repairs worked.
Preconditions
Steps to reproduce
Expected result
Actual result