1.0.1 • Published 5 years ago
@uqpay/hosted_ui v1.0.1
UQPAY Web Hosted-UI
UQPAY Hosted-UI is a readymade UI that allows you to accept card on your website.
Introduction
Import the library
npm install @uqpay/hosted_ui
Usage
import UQPAY_UI from "@uqpay/hosted_ui";
UQPAY_UI.create(
{
token: "14c0bdaf7b59473aaa822c03d62f403c", // get this token from your server side
mode: "test", // for production use 'prod'
locale: "en_US",
container: "#root", // html component
},
function(err, instance) {
if (!err) {
instance.requestCardInfo((err, cardInfo) => {
console.log(err, cardInfo);
})
}
}
);
Helps
- Read the docs
- Find a bug or any feedback? Open an issue