Docs

Log into read the version of docs relevant to your site.

Need to extend trial days when the customers add their payment methods during trial period

Problem Statement

You want to extend the trial period (e.g., from 7 to 30 days) when a customer adds a payment method during trial. You need both manual and automated options.

Solution

You can extend the trial when a payment method is added either manually or automatically via webhooks and API.

Steps to Set It Up

Manual

  1. When the customer adds a payment method, open the subscription details page.
  2. Use Edit Trial End Date in the action panel (right side) to extend the trial days.

Automated

  1. Configure a webhook for the payment_source_added event: Settings > Configure Chargebee > Webhooks. See Configure webhooks.
  2. When the event fires (payment added via Hosted pages or API), your system receives the webhook payload.
  3. Call the Update subscription for items API with the trial_end parameter set to the new trial end date (UTC epoch timestamp).

Was this article helpful?