Error – Amount must match the 3D Secure authorization amount
-
A customer tried to order through our webshop several times in vain.
Each time he obtained the message “Error – Amount must match the 3D Secure authorization amount.”We are using
Wordpress 5.30,
WooCommerce 3.8.1, and the
WooCommerce Braintree Gateway 1.9.3
WooCommerce EU VAT Number
WooCommerce Services 1.22.1
Theme: EscapadeI asked Braintree for support and they supplied the following (I have changed the name, email address, merchant_id and IP because of GDPR):
<—
A snippet of the parameters sent for one of the transactions that resulted in an error.
“Parameters: {\”transaction\”=>{\”type\”=>\”sale\”, \”amount\”=>\”199.20\”, \”payment_method_nonce\”=>\”0c7ef01b-7e9a-0b5b-f0c0-679afdf60267\”, \”channel\”=>\”TipsandTricks_SP\”, \”customer\”=>{\”first_name\”=>\”Christopher\”, \”last_name\”=>\”*…***\”, \”phone\”=>nil, \”email\”=>\”*…***@*…**.uk\”}, \”options\”=>{\”submit_for_settlement\”=>true}}, \”merchant_id\”=>\”…\”}”Now here is a snippet of the 3D Secure request sent by your integration.
“Parameters: {\”amount\”=>\”166\”, \”braintreeLibraryVersion\”=>\”braintree/web/3.43.0\”, \”_meta\”=>{\”merchantAppId\”=>\”polyhedron.com\”, \”platform\”=>\”web\”, \”sdkVersion\”=>\”3.43.0\”, \”source\”=>\”client\”, \”integration\”=>\”custom\”, \”integrationType\”=>\”custom\”, \”sessionId\”=>\”7a66d338-2d09-4759-9bbf-6d19e59fb828\”},\”merchant_id\”=>\”…\”, \”version\”=>\”1\”, \”payment_method_nonce\”=>\”tokencc_bh_5f3s6k_7pf9b6_bsfpvp_3hnkxj_8d6\”}” […]
During the 3D Secure authentication, an amount of 166 was authenticated. After the 3D Secure authentication, a transaction request of 199.20 was created, leading to the error. You need to make sure that the amount you pass on the client-side(3DS amount) matches the amount you pass with your server-side Transaction Sale API call.
–>
“WooCommerce” provides the following data (for the most recent attempt):
IP Address 130….
IP Country United Kingdom (UK)
Billing Country United Kingdom (UK)Order notes:
Unpaid order cancelled – time limit reached. Order status changed from Pending payment to Cancelled.
December 10, 2019 at 5:47 pmThe amount is £199.20 (£166.00 + VAT £33.20)
The customer tried
December 10, 2019 at 5:47 pm
December 10, 2019 at 12:32 pm
December 6, 2019 at 5:31 pm
December 6, 2019 at 1:27 pmI should mention that there have been a few orders that were successfully processed, even with VAT.
Hope you can help us. Thank you.
Kind regards,
Joerg
- The topic ‘Error – Amount must match the 3D Secure authorization amount’ is closed to new replies.