seerbit-nodejs
Version:
SeerBit NodsJS SDK
29 lines (21 loc) • 688 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.UpdateRecurringSubscription({
"email":"akintoyekolawole@gmail.com",
"mobileNumber":"08033456500",
"billingId":"0999",
"type":"3DSECURE",
"billingPeriod":"1",
"subscriptionAmount": true,
"status":"INACTIVE"
})
.then(res=>console.log(res))
.catch(e=>console.log(e))