#Andreas
1 messages · Page 1 of 1 (latest)
Hi there!
Which property exactly? The billing_cycle_anchor when creating a subscription object?
Wait, so it's on Checkout Session you are trying to do this (and not a Subscription)?
Yeah, the checkout session should create the subscription. Unless I'm reading the documentation wrong this is supposed to be valid, no?
No, the valid parameters for Checkout Session are listed here: https://stripe.com/docs/api/checkout/sessions/create?lang=curl#create_checkout_session-subscription_data
So the documentation is wrong? If you click the Checkout example here, it shows the code to do what I'm attempting: https://stripe.com/docs/billing/subscriptions/billing-cycle#new-subscriptions
And when I copy/paste that into my editor, I get the same warning as the screenshot I posted above
Oh you are right, this is a brand new feature that we just released actually.
Which versino of stripe-go are you using?
Yes looks like it's not yet available in the Go SDK, since the feature was literally released a couple of days ago.
If you want to use that feature now, you'll need to make a direct REST API call to the endpoint.
Will notify the team about this.
Alright, thanks! I'll fall back to direct REST for now, and then update once the new SDK is out.