#cynefin_30
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- cynefin_30, 18 hours ago, 10 messages
- cynefin_30, 2 days ago, 6 messages
hi! do you have more context on the exact API calls you're making and exact error messages?
This is the exact error
and also while creating a new checkout session the response seems fine it gives back me a checkout link but when I am opening the checkout link it says this
makes sense. As it says, there are limits to how many updates to a subscription you can make . It's in the region of hundreds an hour(I can't share the exact figures), so if you're hitting that, you need to change your overall design as that would be excessive.
any details for that like exact cs_test_xxx, exact code used to create and then redirect to the Sesson, any logs in the browser console of that page?
cs_test_a1T6ILLMOm6hc1Xuy3tTLyE8VFVVgaiPUvt8MwvX84zQwlFZCTZldpIxzu:11 POST https://api.stripe.com/v1/payment_pages/cs_test_a1T6ILLMOm6hc1Xuy3tTLyE8VFVVgaiPUvt8MwvX84zQwlFZCTZldpIxzu/init 400 (Bad Request)
This is the response
I'd assume it's because your cancel_url (https://xxx) is nonsense/not a valid URL but I can look deeper
I was testing this prior with this cancel_url it was working absolutely fine
ok no the actual problem is "Coupon Vv6pGpCz is expired and cannot be applied."
Okay got it
basically you passed a coupon and between the time you created the CheckoutSession in the API and the time you visited the link, the coupon was expired
is it not showing that the coupon expires on Feb 10
hmm
As you can see in the Checkout session response
i Created the checkout session at 1706788709 which is Thursday, February 1, 2024 5:28:29 PM GMT+05:30
and expires at 1706875108 which is Friday, February 2, 2024 5:28:28 PM GMT+05:30
It should work right ?
did you maybe create a different Coupon object with the same ID at some point in the past?
the Dashboard doesn't handle that very well so you can't see the old one if there was one
hmm, not sure , I don't know why it says it's expired, looking some more
Okay
I tried creating a new coupon and then created a new checkout session the same error screen is being shown
Hey stepping in here
The reason why the coupon is showing as expired is because the Checkout Session was associated to a test clock via the cus_xxx object: https://dashboard.stripe.com/test/billing/subscriptions/test-clocks/clock_1OXm38HdUpLJ8pAsx0JR0daW
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
That clock is frozen at 25 June 2024 which is after the coupon expiry date
ohh okay got it
You either need to use a different cus_xxx not tied to a clock, or extend the expiry time of the coupon
Thanks worked fine now !!
No problem, glad I could help!