#oliver-manz_best-practices

1 messages ¡ Page 1 of 1 (latest)

near boneBOT
#

👋 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.

keen sphinx
#

You could use pm_card_visa, for example.

keen locust
#

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.

keen sphinx
#

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.

keen locust
keen sphinx
keen locust
#

req_YwcUugRvYkLM5i

keen sphinx
#

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.

keen locust
#

I also tried without it. And just now - same result

keen sphinx
#

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.

keen locust
#

Wait...

#

Cool :
requires_payment_method
requires_capture

Thanks a lot, Rubeus.

keen sphinx
#

Did it work after removing the overcapture bit?

keen locust
#

Yep.