UNPKG

bootpay-backend-nodejs

Version:

Bootpay Server Side Package for Node.js

17 lines 502 B
(async () => { const Bootpay = require('../dist/bootpay').Bootpay Bootpay.setConfig( '5b8f6a4d396fa665fdc2b5ea', 'rm6EYECr6aroQVG2ntW0A6LpWnkTgP4uQ3H18sDDUYw=' ) let token = await Bootpay.getAccessToken() if (token.status === 200) { let response try { response = await Bootpay.destroySubscribeBillingKey('5f97b8a40f606f03e8ab32a0') } catch (e) { return console.log(e) } console.log(response) } })()