Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Add cancel_subscription() method #57

Conversation

MaximilianoRicoTabo
Copy link
Contributor

  • Add a cancel_subscription function that receives a subscription class instance

All Submissions:

Changes proposed in this Pull Request:

  • Add a cancel_subscription function that receives a subscription class instance and calls cancel function passing the last order from the subscription
  • Make Cancel function return boolean like it's done in Stripe and Payfast.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.

Sorry, something went wrong.

MaximilianoRicoTabo and others added 5 commits January 29, 2025 19:17
 * Add a cancel_subscription function that receives a subscription class intance
…tion as parameter instead of the order.

* Move cancel() function code to function created above and call with just the subscription id.
* call directly to cancel at the gateway from cancel subscription
* Make subscription id the param at cancel at the gateway instead of subscription object
@andrewlimaza andrewlimaza merged commit e41c330 into strangerstudios:dev Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants