#Bit-setup-future-usage

1 messages · Page 1 of 1 (latest)

bitter plover
#

Hey! I don't really I understand the question

#

What role does the HTML play?

fallow geyser
#

hehe sorry 🙂 I'll send you some screenshots

bitter plover
#

I guess you're using confirmCardPayment?

fallow geyser
#

this is what I do on the "code behind" in the C#

bitter plover
#

Think I spoke to you yesterday about unsetting setup_future_usage when updating a PI. Is this related?

fallow geyser
#

then I get the PaymentIntent.SecretKey and pass it over the HTML part

#

yes it's always me

#

thanks for yesterday, you saved me a lot of coding, by setting it to "" solved my problem yesterday

#

as you can see, in the html part, I have another "setup_future_usage"

#

I'm using "elements"

bitter plover
#

Yep, ok

fallow geyser
#

but that ClientSecret is already linked to a PaymentIntent that was created with "setup_future_usage" to "off_session"

#

so I don't know where I need to specify the value of it... when I create the paymentintent, or in the html part

#

I hope is it clearly now

bitter plover
#

The setup_future_usage parameter you pass when using confirmCardPayment will take precedence over the value you passed when creating

#

Why are you doing that? It's a bit confusing

fallow geyser
#

okkkey

bitter plover
#

You don't need to pass it twice

#

If you pass it on creation, that's sufficient

fallow geyser
#

lol ok that's what I wanted to understand

#

perfect !

#

your help is so valuable... 1 minute and all is solved

#

thank you very much

bitter plover
#

Np!