Using braintree SDK: PayPal transaction always gets declined with error "2046 : TRANSACTION_REFUSED"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- [WooCommerce PayPal Payments] - Required phone country code, different than the cards country code. in PayPal Payments Standard
- Payments Refunded Automatically After Successful Transactions - PayPal Business Account Issue in REST APIs
- Paypal create transaction with QR - API in REST APIs
- Transactions according to unique APIs in SDKs
- Shopify PayPal integration, customer authorized multiple times in PayPal Payments Standard