简体   繁体   中英

How can I set the billing_cycle_anchor when setting up a subscription using a Checkout Session?

As the title says: where can I set the billing_cycle_anchor when setting up a subscription using a Checkout Session? It's clear how this is done when setting up a subscription using the subscription API ( https://stripe.com/docs/api/subscriptions/create ); however, I cannot find any details about how to set the billing_cycle_anchor in a Checkout Session ( https://stripe.com/docs/api/checkout/sessions/create ). Does anyone know how I can do this (I'm using node.js)?

billing_cycle_anchor isn't supported by Checkout when creating Subscriptions at this time. Another option would be to set the Subscription to trial for a period which would start the billing cycle at the end of the trial:

https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM