#brettski-checkout-promotioncode
1 messages · Page 1 of 1 (latest)
Hey @manic fox so you can set https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts-promotion_code
But I don't remember if it pre-fills the box or just sets that code and hides the box. Let me test
Ah, missed that, just a bit lower in that list under discounts. I'll play with that. Thank you!
How do I know which version of the API I am looking at when looking at the docs?
yeah it's an override so if you set it you can't pass allow_promotion_codes
the API reference is only for the latest version of the API
Oh, I thought the API update change log said, https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data-description was going away
hmmm looks like we forgot that one, I'll flag
Darn, I got excited as it may still exist.
That change killed my entire checkout process 😦
Can you say more?
We run monthly and yearly events and use the same price code for each month's ticket (a line item). There is event-specific data we add to the line item in the description. E.g. exactly what it includes.
One main reason we went with strip to begin with is that we could use the same product price id over and over again instead of having all the added overhead of a new product for each event (and event attendee level, etc.)