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 #26427

Merged
merged 7 commits into from Jul 20, 2021

Conversation

ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal commented Jul 11, 2021

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

@coveralls
Copy link

coveralls commented Jul 11, 2021

Coverage Status

Coverage increased (+0.04%) to 42.939% when pulling 805163a on ruchamahabal:halted-memberships into 013b352 on frappe:develop.

@ruchamahabal
Copy link
Member Author

Unrelated test case failing. Merging.

@ruchamahabal ruchamahabal merged commit a758071 into frappe:develop Jul 20, 2021
ruchamahabal added a commit to ruchamahabal/erpnext that referenced this pull request Jul 20, 2021
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 added a commit that referenced this pull request Jul 20, 2021
#26427) (#26564)

* 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
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
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
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