#MandalorianIV

1 messages · Page 1 of 1 (latest)

late jayBOT
slate pumice
#

hi, what's the problem?

slim niche
#

The problem is I was creating payment intent in my flutter app. but I realized that I should not keep the secret key at the local files

slate pumice
#

certainly not yep

slim niche
#

So I retrieve the payment intent from backend

#

Dieser PaymentIntent pi_3NSdetDORf0YKnMO24oU1FxG kann nicht mit Ihrem veröffentlichbaren Schlüssel bestätigt werden, da dessenconfirmation_method auf manual eingestellt ist. Verwenden Sie stattdessen Ihren vertraulichen Schlüssel oder erstellen Sie einen PaymentIntent, bei demconfirmation_method aufautomatic eingestellt ist.

#

this error occures

slate pumice
#

as the error message mentions, you need to change the backend code to pass confirmation_method: "automatic" instead.

slim niche
#

where exactly?

#

where should I set that

#

?

slate pumice
#

in the API call that your backend code is making to create the PaymentIntent

slim niche
#

we re following this

#

we are adding confirmation method in authorize part

slate pumice
#

I know nothing about that library

#

try searching in your own backend code for the string confirmation_method and see where it's being used, and change the value

slim niche
#

when we do that error pops

#

pi_3NSdetDORf0YKnMO24oU1FxG normally I should be able to confirm payment with this right?

slate pumice
slim niche
#

when we change confirmation method to automatic error pops

slate pumice
slate pumice
slim niche
#

error 406

#

I'm reproducing the error

#

wait a sec

slate pumice
#

that looks like an error from that library you're using, I don't recognise it as a Stripe error.

slim niche
#

hmm

slate pumice
slim niche
#

I think we have struggling about settting that parameter