0

We are facing an issue with Braintree Module in Magento 2 with Sandbox.

PayPal:

enter image description here

Credit Card:

enter image description here

We have set up an account as per Magento guideline (https://docs.magento.com/m2/ce/user_guide/payment/braintree.html)

but still not working.

I have check payment.log but not able to get any response data.

[2018-09-07 11:06:56] main.DEBUG: array (
  'request' => 
  array (
    'customer' => 
    array (
      'firstName' => 'kaushal',
      'lastName' => 'chauhan',
      'company' => 'CP',
      'phone' => '111-222-3333',
      'email' => '[email protected]',
    ),
    'amount' => '3.00',
    'paymentMethodNonce' => 'tokencc_bc_bxqv9x_y5vscx_bqyy9s_kvybcn_9z5',
    'orderId' => '000000050',
    'merchantAccountId' => 'xmfnjz54mtzfjp6w',
    'channel' => 'Magento2_Cart_Community_BT',
    'billing' => 
    array (
      'firstName' => 'kaushal',
      'lastName' => 'chauhan',
      'company' => 'CP',
      'streetAddress' => 'address',
      'extendedAddress' => '',
      'locality' => 'greer',
      'region' => 'SC',
      'postalCode' => '29650',
      'countryCodeAlpha2' => 'US',
    ),
    'shipping' => 
    array (
      'firstName' => 'kaushal',
      'lastName' => 'chauhan',
      'company' => 'CP',
      'streetAddress' => 'address',
      'extendedAddress' => '',
      'locality' => 'greer',
      'region' => 'SC',
      'postalCode' => '29650',
      'countryCodeAlpha2' => 'US',
    ),
    'options' => 
    array (
      'storeInVaultOnSuccess' => true,
    ),
    'store_id' => 1,
  ),
  'client' => 'Magento\\Braintree\\Gateway\\Http\\Client\\TransactionSale',
  'response' => 
  array (
  ),
) [] []

also, need to confirm anyone has used with Magento REST API with braintree??

2
  • I would suggest not displaying full credit card numbers (see your second screenshot).
    – drs6222
    Sep 7, 2018 at 13:36
  • drs6222, its dummy sandbox credit card and it will not work on production mode..:) Sep 7, 2018 at 13:48

1 Answer 1

1

Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.


Based off of the response object you included it appears that you are passing your merchant ID in for the merchant account ID field. I would recommend checking the value you entered in your Magento admin panel with your sandbox's merchant account ID.

You mentioned above that the credit card number used is a test card number, but Braintree's sandbox will only accept our own test card numbers. After you correct the merchant account ID value I would try another test using one of our test card numbers as well as try out another test PayPal transaction attempt.
 
 Please reach out to Braintree Support if you have any other questions. 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.