seerbit-nodejs
Version:
SeerBit NodsJS SDK
27 lines (19 loc) • 641 B
JavaScript
const {Client, Config,RecurrentCheckout } = require("seerbit-nodejs");
const {SeerBitConfig} = require("../config");
const config = new Config(
{
publicKey: SeerBitConfig.PUBLIC_KEY,
secretKey: SeerBitConfig.SECRET_KEY,
bearerToken: SeerBitConfig.TOKEN
});
const client = new Client(config);
const checkout = new RecurrentCheckout(client);
checkout.ChargeRecurringSubscription({
"amount":"1000.00",
"currency":"NGN",
"email":"akintoyekolawole@gmail.com",
"paymentReference": "1614546392466",
"authorizationCode": ""
})
.then(res=>console.log(res))
.catch(e=>console.log(e))