#olbe-vercel
1 messages ยท Page 1 of 1 (latest)
Hm, I'm not exactly sure. The error code and error message are identical above, which are the pieces that Stripe is returning
Yepp, it's super odd
I'm getting the same behaviour when using the prod keys locally as well
Because I thought perhaps there was a discrepancy between the Stripe API when using test vs prod keys
I mean I can solve it by updating the condition to use eg the code prop within the raw object of the error
According to the docs you should be able to use the e.type:
https://stripe.com/docs/error-handling#error-types
Do you have example request IDs from test and prod?
I do
Local:
request-id': 'req_07bVGC9pfd0Yjv',
Prod:
'request-id': 'req_R0n1exRnszzWrR',
๐
Thanks! From what I can see, the requests we received look identical and we returned the same response in both cases. Any differences have to do with how Next.js is implemented in the environments you have set up