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

feat(Non Profit): API Endpoint to update halted Razorpay subscriptions #26564

Merged

Conversation

ruchamahabal
Copy link
Member

Backport: #26427

When all payment retries have been exhausted, Razorpay moves the subscription to the halted state. The customer has to manually retry the charge or change the card linked to the subscription for the subscription to move back to the active state.

Sample payload for halted subscription: https://razorpay.com/docs/webhooks/payloads/#subscription-halted

  • Changed Subscription Activated checkbox to Subscription Status field. Added a patch for the same.
  • Added an API endpoint to update Razorpay subscription as halted. Razorpay webhook can be used to update this:
halted-memberships.mp4

Documentation PR: frappe/erpnext_documentation#366

frappe#26427)

* feat: Update Subscription Activated field to Subscription Status to accomodate Halted status

* feat: API Endpoint to halt Razorpay subscription

* fix: sider

* fix: validation message

* test: halted razorpay subscription
@ruchamahabal ruchamahabal changed the title feat(Non Profit): API Endpoint to update halted Razorpay subscription… feat(Non Profit): API Endpoint to update halted Razorpay subscriptions Jul 20, 2021
@ruchamahabal ruchamahabal merged commit 57514f7 into frappe:version-13-hotfix Jul 20, 2021
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.

1 participant