braintree / braintree_ruby

Braintree Ruby library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
444 stars 195 forks source link

Transaction with "fake-paypal-one-time-nonce" with braintree sandbox account is getting rejected with message "Declined" #197

Closed sumitAmble closed 4 years ago

sumitAmble commented 4 years ago

General information

*braintree-java-2.107.0

Issue description

I am creating the transaction with braintree sandbox account with "fake-paypal-one-time-nonce" but my transaction is getting declined i saw the whole response message as "Declined" i tried almost everything i could but nothing helped me so i am asking for help here. my code is as follows TransactionRequest request = new TransactionRequest() .amount(new BigDecimal("10.00")) .paymentMethodNonce(com.braintreegateway.test.Nonce.PayPalOneTimePayment) .options() .submitForSettlement(true) .done(); Result<Transaction> result = gateway.transaction().sale(request); if (result.isSuccess()) { result.getMessage(); } else { System.out.println(result.getMessage()); } please help me with that let me know if you need more info on this

crookedneighbor commented 4 years ago

If you're still having trouble, definitely reach out to our support team for help with your integration: https://help.braintreepayments.com/