New to the community? Welcome! Please read our Community Rules and Guidelines
Join the live Q&A with our Community moderator team Wednesdays, 1-2pm PT (4-5pm ET) and Fridays, 4-5pm GMT. Learn more in Community Events
Hello, I need your help. I'm using a test account paypal - sanbox account . I created this account as described in the documentation https://developer.paypal.com/docs/integration/paypal-here/sandbox-testing/configuring-accounts/#crea... For integration I’m taking Braintree SDKs https://developers.braintreepayments.com/start/overview I’m try to testing create a transaction in my backend server (https://developers.braintreepayments.com/start/hello-server/java) I’m configure the environment with account sanbox token private static BraintreeGateway gateway = new BraintreeGateway( sanboxAccountToken ); Then created a transaction: TransactionRequest request = new TransactionRequest() .amount(BigDecimal.valueOf(amount)) .paymentMethodNonce(paymentMethodNonce) .descriptor() .name(description) .done(); Result result = gateway.transaction().sale(request); Where: paymentMethodNonce = "fake-paypal-one-time-nonce" amount = 10.0 description = "PAYPAL * test" Test is fail. I get response code 2038 ("Processor Declined"), debugId = e405b9e85617a What am I doing wrong?
©1999-2019 PayPal, Inc. All rights reserved.