Comments (2)
Thanks for the suggestion, @marotti! If I understand you, you'd like to tighten up the timeout to something below 60 seconds (as the gateway will timeout anything over 60 seconds). You're right, this would be really handy in the Java library. We'll look at what it will take to get this implemented. We'll let you know when we have updates.
from braintree_java.
We just released a new version of the library where you can set the timeout. Keep in mind when setting the timeout that the Braintree gateway currently has a timeout of 60 seconds to accomadate long requests. However, if you set the timeout for less than 60 seconds you may not see the result.
For example, if you set the server SDK timeout to 10 seconds and the request successfully charges the customer at the processor after 19 seconds, then the customer will be charged for the transaction and you will not be notified of this. You will need to check the state of the transaction in the gateway to verify whether the transaction was successful or not.
private static BraintreeGateway gateway = new BraintreeGateway(
Environment.SANDBOX,
"your_merchant_id",
"your_public_key",
"your_private_key"
);
gateway.configuration.setTimeout(10000);
If you have any issues please feel free to reach out to us, thanks again for bringing this up!
from braintree_java.
Related Issues (20)
- junit-vintage-engine missing testonly attribute HOT 1
- Missing values in com.braintree.ValidationErrorCode enum HOT 4
- Payment method nonce represents an un-vaulted payment instrument HOT 1
- Aaa
- RFE: Create OR Use an Existing Customer when making a Transaction.sale() with a nonce HOT 1
- Java Sdk support native mode? HOT 1
- Is there a way of creating webhook endpoints programmatically via the API, like in Stripe? HOT 2
- 3.16.0 - transaction search doesn't work (0 results always) HOT 7
- Viva Sales
- أنا أتشارك 'Screenshot_٢٠٢٢٠٧١٥-٢٠٢٦٥٠_Chrome' معك
- أنا أتشارك 'اوراق الاعتماد محمد منير أنور ابراهيم' معك
- تم إنشاء ملف تعريف Google Developer | مطورو جوجل
- Change log
- Missing getExpirationMonth() and getExpirationYear() in PaymentMethodNonceDetails HOT 2
- Client token generation does not raise validation error but returns null for nonexistent customers. HOT 3
- There is no SEPA payment method in PaymentMethodParser HOT 2
- "usBankAccounts" data is missing in com.braintreegateway.Customer.getPaymentMethods
- Support for Java 17
- Incorrect logging level for the HTTP client HOT 2
- How to refund a transaction with status "submitted for settlement". HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braintree_java.