This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this code will update subscriptions from customer dashboard | |
async function skipCharge(charge_id) { | |
console.log(charge_id); | |
const charges = await manageSubscriptions("charges"); | |
const charge = {}; | |
charges.charges.forEach((item) => { | |
if (item.id === charge_id) { | |
charge.obj = item; | |
} |
NewerOlder