These settings are for legacy clients using our old version of the Stripe integration. This article should only be used for troubleshooting these legacy integrations.
Set Up Webhooks
Next, you are going to add webhooks "endpoints" so that information is sent from Stripe to Cerbo. This is very important for (1) enabling you to set a subscription to stop after a certain number of payments in Cerbo - webhooks allow Cerbo to count the number of payments as they occur, (2) failed payment alerts in Cerbo, and (3) troubleshooting Stripe issues, should they arise, from our end.
In the menu, click on Developers, then on Webhooks. In the Endpoints section, click on the + Add endpoint button at the top right.
Under Endpoint URL, put https://your EMR URL.md-hq.com/webhooks/stripe.php, replacing "your EMR URL" with the unique subdomain that you use to access your EMR. Your unique subdomain is the part that comes between "https://" and ".md-hq.com" in the link that you use to log into the EMR.
Under Events to send, use the drop down menu to select the events that should trigger a webhook to go to Cerbo. This includes ALL of the events under ALL of the following (you can click on the main item in the drop down menu to add all its events at once - repeat as needed until all are added):
Charge
Customer
Invoice
Payment Method
Plan
Once you've added all of these, there will be quite a few endpoints in the list. You can ignore the warning about how enabling a lot of events may result in high load on your servers.
Click on Add endpoint to save.
Important Note to Avoid "Silent" Payment Failures
For failed subscriptions, you want to make sure your settings are correct to avoid a situation where a subscription fails, but no failure notification is generated.
In the menu, click on Settings at the bottom
Under Stripe apps, click on Subscriptions and emails
Under Manage failed payments, make sure that Subscription status is "If all retries for a payment fail, leave the subscription as-is"
If "mark the subscription as unpaid" is selected, Stripe may stop trying to pay the subscription without sending any failure notification of any kind.