#akii-clientsecret

1 messages · Page 1 of 1 (latest)

buoyant smelt
#

Hi, do you mean PaymentIntent's ClientSecret?

#

where are you sending it to?

#

Normally it's safe to be exposed to client-side so it shouldn't be a problem to include in URL. But I wonder what scenario is that

abstract imp
#

Yes its the Payment Intent's Client Secret.

#

It is hitting this URL

#

Stripe is hitting this URL along with ClientSecret

buoyant smelt
#

why would you need clientSecret there? You can simply send in the PaymentIntent Id

#

return_url is the redirection after PI has successfully confirmed, so no need for client secret anymore

abstract imp
#

Im not sending it, Stripe is redirecting me after successful payment to this URL along with payment intent id and ClientSecret attached.

buoyant smelt
#

If you don't need it then feel free to remove it

abstract imp
#

No i actually need it to get the Payment method id.

buoyant smelt
#

To get the PaymentMethodId you only need the Payment Intent Id, I believe

#

You mean Stripe automatically included payment intent id and secret into the return_url, correct? Example?

#

Ah I see what you mean

#

It's safe, no worries

abstract imp
#

Yes correct

#

Okay thanks for confirming