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?
... View more