#vpatel1093_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1222599744379945041
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
To be more specific, my workflow works as is but creates recurring payment methods. All I want to do is maintain that workflow but conditionally create PMs based on if the products purchased contain a subscription item.
Is it as simple as just omitting that payment intent param? Seems not to be as there is an error some time after the checkout (originating from a follow up web book) saying “The customer does not have a payment method with the ID _____. The payment method must be attached to the customer.”
That error is returned in a Stripe::InvalidRequestError from a POST request to /stripe/events
Hi, if you're trying to make one time payment, you should be able to ommit the setup_future_usage param. Can you share the request id where you're seeing this error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
That error is typically surfaced if you were trying to make a payment using a payment method that you did not setup for future use. Which from what you described that is not what you want. If you can share the request id, I can further look
That is what I want. I want to allow customers to check out and their payment method be single use. Currently it is always recurring use. I want to conditionally create the PM as recurring/one time based on the cart contents but leave recurring intact. Hopefully that makes sense
Yes, that does make sense. Can you share the request id so I can further look?
Yes, sorry I just left my computer for a moment I will send that shortly please don’t close the thread