Skip to content

Commit

Permalink
Perform actual cancellation.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavqrcg committed Jun 19, 2024
1 parent 783f87e commit 0dd14b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ router.post("/cancel", async function (req, res, next) {

try {
const result = await chargebee.subscription
// .cancel(subscriptionId, { end_of_term: true })
.retrieve(subscriptionId)
.cancel(subscriptionId, { end_of_term: true })
// .retrieve(subscriptionId)
.request();

for (const action of postCancelActions) {
Expand Down

0 comments on commit 0dd14b7

Please sign in to comment.