@togtokh.dev/tokipay
Version:
tokipay is a library for qpay payment gateway. It is a wrapper for axios and https module. It is a simple and easy-to-use library for tokipay payment gateway. It is a wrapper for axios and https module. It is a simple and easy-to-use library for tokipay p
19 lines (18 loc) • 524 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const _1 = require("./");
const TOKEN = async (host, body) => {
_1.default.host = _1.default.hosts[host];
try {
_1.default.token.spose_token = body.spose_token;
_1.default.token.third_party_token = body.third_party_token;
_1.default.merchant_id = body.merchant_id;
}
catch (error) {
return {
success: false,
message: "error",
};
}
};
exports.default = { TOKEN };