omise / omise-java Goto Github PK
View Code? Open in Web Editor NEWOmise Java Library
Home Page: https://docs.opn.ooo
License: MIT License
Omise Java Library
Home Page: https://docs.opn.ooo
License: MIT License
Hi,
I tested the charging API by token in the terminal everything looks good.
Then, I generate a new token and test charging via Java SDK as code below
Client client = new Client("my_pkey", "my_skey");
Charge charge = client.charges()
.create(new Charge.Create()
.amount(10000)
.currency("thb")
.card("tokenId"));
Unfortunately, the token was not found.
I've tried to use the same token to charge via terminal, it's work!!
So, could you please advice me, why I can't charge a card via JavaSDK ?
lib: omise-java version 2.5.3.
I saw Configurer.java. In your basic authentication send authen with "x" password but the other library (e.g. go sdk) it is not send authen with "x" password.
Please help fix.
there are many issues and PRs for it, but no one respond
we have sent email support, but no respond. it's more than 1 week ago
Nice library for Omise API. Kudos for a very nice implementation.
You might wanna re-consider the dependencies that you use in the SDK. The reason for this is Omise-Java has a pretty daunting method counts. In latest version, it eats up about 35K methods count in total which is very scary. (http://www.methodscount.com/?lib=co.omise%3Aomise-java%3A2.0.7)
As you may know, Android DEX limit of method count is around 65k which is surprisingly low number. As an app developer we can't do nothing much but just to accept it. Using Omise-Java, it will almost forcefully ask app developer to resort to multi-dex option (http://www.methodscount.com/?lib=co.omise%3Aomise-java%3A2.0.7), or cut down other dependencies he/she has in the project, or even worst just to need to drop Omise-Java library itself. Those options are not an ideal for you guys.
As I have checked, google guava, and jackson lib are the top two main culprits. My suggestion to you is to find some good alternatives for them.
Thanks
Can someone help with a connection reset exception I am receiving when trying to create source/charge?
I am using Spring Boot server which is being run as a docker container in AWS ECS.
If null
is sent to OkHttp params builder directly, it'll throws.
We need to change the timeout from 10s to 60s for co.omise.net.APIResource.createConnection()
private static final int READ_TIMEOUT = 60 * 1000;
The bank usually takes 6 to 10 seconds to process the payment.
sometimes it can take 40 seconds, but never more than 60 seconds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.