Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrenzo17 committed Nov 25, 2021
1 parent a08826d commit 988e6f4
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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

Expand Down Expand Up @@ -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
});

```

Expand Down

0 comments on commit 988e6f4

Please sign in to comment.