Using braintree SDK: PayPal transaction always gets declined with error "2046 : TRANSACTION_REFUSED"

maddm
New Community Member

I'm trying to integrate Braintree SDK into my web application, in order to accept CC and PayPal payments, using the Drop-in UI
(https://developers.braintreepayments.com/guides/drop-in/setup-and-integration/javascript/v3)

I'm currently testing with the Braintree Sandbox enviornment and I've linked it to my PayPal Sandbox business account.

When paying through PayPal (through the gateway.transaction.sale() call) I cannot seem able to make the transaction succeed! No matter what amount I use or what Sandbox user account I use, the transaction gets always declined. In the response payload there's not much data to go with, just these info (I'm including only the relevant data):

 

{
  message: "Declined",
  transaction: {
    status: "processor_declined",
    processorResponseCode: "2046",
    processorResponseText: "Declined",
    additionalProcessorResponse: "2046 : TRANSACTION_REFUSED"
  }
}

 


I'm out of ideas. 
The Braintree testing guide seems to only focus on Credit Card transactions, so I'm unsure on how I am supposed to proceed in order to test PayPal integration: 

(https://developers.braintreepayments.com/reference/general/testing/node

Does anyone have any idea or advice?

Login to Me Too
1 REPLY 1

GeorgeAbadier
Contributor
Contributor

I was having the same problem from couple hours actually  I was one of the ten that signed me too but I contact with Braintree to get help and they really helped me this the problem and how to be solved Screenshot (13).png

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.