Introducing the Chargebee CLI

Is it possible to set a future start date for a subscription via drop-in script?

Problem Statement

You want to know if it is possible to to set a future start date for a subscription via drop-in script.

Solution

Summary

You may want to set a future start date for the service that your customers are subscribing to, rather than having the subscription activate immediately. When a future start date is given, the subscription is created in the Future state, and the customer is not charged immediately, but only when the subscription becomes Active, on the subscription start date.

Solution

In the drop-in script embedded, the product.data["start_date"] parameter would need to be used. Below is the sample code for reference:

  <a href="javascript:void(0)" data-cb-type="checkout" data-cb-plan-id="plan_id">Subscribe</a>

Any date values would need to be in the form of a UNIX timestamp.

Related Documentation & Articles

What is In-App Checkout?

Unable to find the drop-in script