#oliver-manz_best-practices
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/1303411629781811230
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! You probably want to use one or more of the test Payment Method objects documented here: https://docs.stripe.com/testing
You could use pm_card_visa, for example.
Specifically, go here and switch to the Payment Methods tab: https://docs.stripe.com/testing?testing-method=payment-methods#cards
Thanks - one step further. I can do that via update on the payment intent. Now it switches from requires_payment_method to requires_confirmation.
PaymentIntentUpdateParams params = PaymentIntentUpdateParams.builder()
.setPaymentMethod("pm_card_visa ")
.build();
confirmation method is automatic, by the way.
Right, but you need to tell the API to actually confirm in the first place: https://docs.stripe.com/api/payment_intents/confirm
Confirmation normally happens on the frontend, when something like stripe.confirmPayment is called, but for testing server-side you need to call the confirm endpoint to move the process forward.
OK - there seems to be something missing in our setup.
This account is not eligible for the requested card features. See https://stripe.com/docs/payments/flexible-payments for more details.
Not sure I understand, can you give me the request ID showing that error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_YwcUugRvYkLM5i
Can you try that request again, but without specifying the Payment Method? You already updated the Payment Intent with that Payment Method in a previous request.
I also tried without it. And just now - same result
Oh, hang on, I missed that you were trying to use overcapture. Looks like the account you're using isn't eligible for that feature, which is why you're seeing that error.
See here for details: https://docs.stripe.com/payments/overcapture?platform=web&ui=elements
Did it work after removing the overcapture bit?
Yep.