Code Monkey home page Code Monkey logo

paybyte-android-client-sdk's Introduction

PayByte Android SDK

The Android SDK allows you to accept Crypto payments from your Java Android app using the PayByte REST API. The SDK has been designed to act as a wrapper for all the main PayByte functionalities, allowing the developers to focus on the actual purchasing flow rather than on the API's implementation details.

Create a new payment

PayByte paybyte = new PayByte(true);
Payment payment = new Payment();
payment.setAmount(0.0332f);
payment.setCoin("BTC");
payment.setMerchantApiKey("[insert your API Key]");
var paymentResponse = payByte.createPayment(payment);

The paymentResponse will contain the JSONObject representation of the payment response.

Get a payment data

Simply provide the payment identifier to retrieve all data related to a transaction.

var payByte = new PayByte(true);
var paymentId = "cf565888-28f5-430e-85af-b34b945ce20f";
JSONObject paymentStatus = payByte.GetPayment(paymentId);

The SDK will return a JSONObject representation of the transaction data.

Get rates

Get the exchange rates of all supported crypto currencies against the provided fiat currency code.

var payByte = new PayByte(true); 
var rates = payByte.getRate("GBP");

The SDK will return a JSONObject representation of exchange rate data against GBP fiat.

What do I need

In order to use PayByte Android SDK, you will need to create a Merchant account on PayByte and get an API KEY. Just go to https://paybyte.io to register as a merchant and get your API KEY.

License

PayByte is released under the MIT License. Please refer to the License file that accompanies this project for more information including complete terms and conditions.

paybyte-android-client-sdk's People

Contributors

izzycoder18 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

anarcypher

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.