liqpay / sdk-java Goto Github PK
View Code? Open in Web Editor NEWLiqPay JAVA sdk
LiqPay JAVA sdk
Map params = new HashMap();
params.put("action", "pay");
params.put("amount", "1.50");
params.put("currency", "UAH");
params.put("order_id", UUID.randomUUID().toString());
params.put("description", "description text");
params.put("language", "uk");
params.put("result_url", "http://localhost:8080");
params.put("sandbox", "1"); // enable the testing environment and card will NOT charged. If not set will be used property isCnbSandbox()
LiqPay liqpay = new LiqPay("i39087887787970", "eS3eYIE3ztX1rere9GXryMUqaBdfsezewEnroKp");
Generated URL - //static.liqpay.com/buttons/p1uk.radius.png
404 Not Found
Please change LiqPay.java:116
String data = base64_encode(JSONObject.toJSONString(withSandboxParam(withBasicApiParams(params))));
to this (or provide some control over encoding)
String data = base64_encode(JSONObject.toJSONString(withSandboxParam(withBasicApiParams(params))).getBytes("UTF-8"));
11 місяців тому було змінено адресу API з
https://www.liqpay.com/api/
на
https://www.liqpay.ua/api/
, В гільці master зміни виконано.
Проблема полягає в тому, що остання версія (v0.6), яку можна підключити через maven цих змін не включає. Таким чином усі запити далі відбуваються за старою адресою із перенаправленням. Із цим все добре, але з 01.07.2018 автоматичне перенаправлення більше не буде відбуватися.
Отже, з'являється питання: чи потрібно самому завантажувати останню версію коду (master) і робити білд. Чи можливо буде створено нову версію релізу (v0.7)?
DatatypeConverter method not support in Android, related with jwtk/jjwt#18.
Could you please change realisation in https://github.com/liqpay/sdk-java/blob/master/src/main/java/com/liqpay/LiqPayUtil.java#L27
Looks like API was changed and now SDK points to wrong checkout URL.
Steps to reproduce:
A cause is the invalid checkout URL:
String LIQPAY_API_CHECKOUT_URL = "https://www.liqpay.ua/api/3/checkout";
but that should be:
String LIQPAY_API_CHECKOUT_URL = "https://www.liqpay.ua/api/checkout";
Added dependency as described on main page of this repo
<repositories>
<repository>
<id>bintray-stokito-maven</id>
<name>stokito-maven</name>
<url>https://api.bintray.com/maven/stokito/maven/liqpay-sdk</url>
</repository>
</repositories>
<dependency>
<groupId>com.liqpay</groupId>
<artifactId>liqpay-sdk</artifactId>
<version>0.6</version>
</dependency>
When building with Maven get error
[ERROR] Failed to execute goal on project portal: Could not resolve dependencies for pro
ject com.site:portal:war:1.2.2-SNAPSHOT: Failed to collect dependencies at com.liqpa
y:liqpay-sdk:jar:0.6: Failed to read artifact descriptor for com.liqpay:liqpay-sdk:jar:0
.6: Could not transfer artifact com.liqpay:liqpay-sdk:pom:0.6 from/to bintray-stokito-ma
ven (https://api.bintray.com/maven/stokito/maven/liqpay-sdk): Not authorized , ReasonPhr
ase:Unauthorized. -> [Help 1]
Credentials shoul be provided to use this repo
On repository artifact is not available for download. Looks like it is not uploaded to repo or was removed. Please check.
https://bintray.com/stokito/maven/liqpay-sdk/
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.