Subscription - How to update the next billing date with Braintree

327 Views Asked by At

When creating a new subscription, the next_billing_date was successfully saved into the database. However, how do I update the next_billing_date in my database every time when a new recurring charge occurs?

1

There are 1 best solutions below

0
On

I recommend using Subscription webhooks. When Braintree fires a webhook, it will include a subscription response object with the next_billing_date attribute. You can use this attribute to keep your database updated.