Premium sms Java integration
Last time I had to integrate application with sms premium payments.
I couldn't find any solution for easy set up and running, so I was forced to write my own client.
Here's the result, feel free to use this:
Library which integrates with premium-sms : https://platnosci-online.pl/panel.html
Sample usage:
That's all! :)
Go to: https://github.com/khipis/premiumsms
I couldn't find any solution for easy set up and running, so I was forced to write my own client.
Here's the result, feel free to use this:
Library which integrates with premium-sms : https://platnosci-online.pl/panel.html
Sample usage:
Config config = ConfigBuilder.instance() .key("YOUR KEY") .partnerId("YOUR PARTNER ID") .url("https://platnosci-online.pl/sms_check.php") .build(); CodeQuery codeQuery = CodeQueryBuilder.instance() .suffix("YOUR SUFFIX") .code("USER ENTERED CODE") .cost(100) .build(); CodeVerifier verifier = new CodeVerifier(config); if(verifier.verify(codeQuery).getVerificationStatus() .equals(VerificationStatus.SUCCESS)) { //Give profit's for user }
That's all! :)
Go to: https://github.com/khipis/premiumsms
Komentarze
Prześlij komentarz