From 988e6f41af5744de4f88b08ab82e55d1bdc2b0d4 Mon Sep 17 00:00:00 2001 From: Andrenzo17 <83454487+Andrenzo17@users.noreply.github.com> Date: Thu, 25 Nov 2021 14:07:20 +0700 Subject: [PATCH] Update README.md --- README.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e01d86b..56d675d 100644 --- a/README.md +++ b/README.md @@ -357,15 +357,24 @@ let parameter = { }; core.createSubscription(parameter) + .then((response)=>{ + // do something to `response` object + }); // get subscription by subscriptionId core.getSubscription(subscriptionId) + .then((response)=>{ + // do something to `response` object + }); // enable subscription by subscriptionId core.enableSubscription(subscriptionId) + .then((response)=>{ + // do something to `response` object + }); -// update subscription by subscriptionId and Param -let parameter2 = { +// update subscription by subscriptionId and updateSubscriptionParam +let updateSubscriptionParam = { "name": "MONTHLY_2021", "amount": "300000", "currency": "IDR", @@ -374,7 +383,10 @@ let parameter2 = { "interval": 1 } } -core.updateSubscription(subscriptionId, parameter2) +core.updateSubscription(subscriptionId, updateSubscriptionParam) + .then((response)=>{ + // do something to `response` object + }); ``` #### Subscription API for Gopay @@ -408,12 +420,21 @@ let parameter = { // link Payment Account core.linkPaymentAccount(parameter) + .then((response)=>{ + // do something to `response` object + }); // Get payment account by account id core.getPaymentAccount(activeAccountId) + .then((response)=>{ + // do something to `response` object + }); // unlink payment account by accountId core.unlinkPaymentAccount(activeAccountId) + .then((response)=>{ + // do something to `response` object + }); ```