Processor Declined for Braintree Sandbox transaction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We are integrating Paypal Express integration via Braintree using Angular and .Net Core in our project.
We have linked Paypal with Braintree and integrated code based on Braintree docs.
Based on following docs we are using Testing cards for Sandbox testing
Ref: https://developer.paypal.com/braintree/docs/reference/general/testing/node#valid-card-numbers
We are using using following card for testing in Paypal:
American Express: 371449635398431
But in Braintree Transaction page, it is displayed as "Processor Declined" status.
Ex: Transaction ID: 3aj23s9s
Braintree Sandbox Account Merchant Id: rvkzzgm3vt755yzf
Paypal ClientId: Ad8MzG-FRMCSB3leoc0KdjaHDW7T7J-1z_RqeBkOtwjo03Vm2529NJjl4bFBGjM-B7mQe-mzTjTKlDat
Braintree web drop in version: "^1.40.2"
.Net Core SDK version: 5.21.0
Please find Server side code attached below.
var request = new TransactionRequest { Amount = amount, OrderId = orderId.ToString(), PaymentMethodNonce = payload.nonce, //DeviceData = deviceDataFromTheClient, Customer = new CustomerRequest { FirstName = payload.details.firstName, LastName = payload.details.lastName, Email = payload.details.email }, BillingAddress = new AddressRequest { FirstName = payload.details.firstName, LastName = payload.details.lastName, CountryCodeAlpha2 = payload.details.billingAddress.countryCode }, ShippingAddress = new AddressRequest { FirstName = "Jen", LastName = "[removed]", Company = "Braintree", StreetAddress = "[removed]", ExtendedAddress = "[removed]", Locality = "Bartlett", Region = "IL", PostalCode = "[removed]", CountryCodeAlpha2 = "US" }, Options = new TransactionOptionsRequest { SubmitForSettlement = true } }; Result<Transaction> result = gateway.Transaction.Sale(request); if (result.IsSuccess()) { // See result.Target for details return Task.FromResult((object)result); } else { // Handle errors return Task.FromResult((object)null); }
Can you please take a look and provide your feedback.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Paypal Error on WooCommerce for credit card payments in Argentina in REST APIs
- https://developer.paypal.com/docs/api/orders/v2/#error-TRANSACTION_REFUSED in PayPal Payments Standard
- Paypal Error on WooCommerce for credit card payments in Argentina in REST APIs
- Need advice on Account / Donations / Payouts / technical issues in Sandbox Environment
- UNPROCESSABLE_ENTITY","details":[{"issue":"TRANSACTION_REFUSED in REST APIs