fatih-yavuz / bilpay-sdk

Bilpay SDK for receiving payments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bilpay SDK

N|Solid

Build Status

Bilpay SDK is the only library you need to start receiving online payments.

  • Import the library
  • Enter merchant key
  • Receive payment

Easy Intallation!

npm install bilpay-sdk@1.0.2 --save

Easy Integration

All you need to do is to configure a Bilpay object and create transaction from it.

const bilpay = new Bilpay({
    shopName: "BilPay DEMO Shop",
    pubKey: "GC5BU5L3XQ4KF5U27AB266UV2QLVEZYB2R2IE72KWO6STRKZDMWZ4AW2",
    timeOut: 50000,
});

  let amount = 5;
  let information = "Bilpay is easy way to pay!"
  bilpay.createTransaction(amount, information)
    .then((transaction) => {
        transaction.onPayment({
            success: () => {
                console.log("YAYYYY")
            }, fail: () => {
                console.log("Payment Time out")
            }
        });
    });

Build Status

Easy to Extend

Transaction object has an onPayment method that you can set success and failure callbacks

No Extra CSS is Required

All css are handled in house and in line. More importantly, you do not need to wory about our css desecrating yours.

No Surprises

All edge cases are handled Build Status

About

Bilpay SDK for receiving payments


Languages

Language:TypeScript 94.6%Language:HTML 3.0%Language:JavaScript 2.4%