1.0.5 • Published 10 months ago
api-n49shop v1.0.5
api-n49shop for react native
We used in react native app
Install
yarn add api-n49shop
Quick Start
import { N49Shop } from "api-n49shop"
componentDidMount() {
N49Shop.init({
url: "http://mstore.io",
secretKey: "ck_b7594bc4391db4b56c635fe6da1072a53ca4xxxx",
queryStringAuth: true,
});
}
handleN49Shop = async () => {
json = await N49Shop.getPayments();
if (json === undefined) {
console.log("fail");
} else if (json.code) {
console.log("fail");
} else {
console.log("success", json)
}
}