#arn4v
1 messages ยท Page 1 of 1 (latest)
Hello ๐
You're using subscription mode with Checkout. The payment_intent property will only be populated in payment mode
https://stripe.com/docs/api/checkout/sessions/object?lang=node#checkout_session_object-payment_intent
For subscriptions, the payment intent lives on the invoice
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh okay. Understood.
Another question: I'm running into the rate limit even in test mode
How do you avoid this if you have a huge influx of checkout.session.completed events and need to fetch invoice on each request?
StripeRateLimitError: This object cannot be accessed right now because another API request or Stripe process is currently accessing it. If you see this error intermittently, retry the request. If you see this error frequently and are making multiple concurrent requests to a single object, make your requests serially or at a lower rate.
at res.toJSON.then.Error_1.StripeAPIError.message (/Users/arn4v/work/node_modules/stripe/lib/RequestSender.js:102:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)