#sanjeewa

1 messages ยท Page 1 of 1 (latest)

finite gulchBOT
lavish sluice
#

Hi there, are these requests created by Stripe SDK?

faint needle
#

Yes . How I process this according to the stripe doc. I have included checkout.js that comes with paymement page. when the page load it called initialize() function that create payment intent . finally handleSubmit() function that trigger const { error } = await stripe.confirmPayment({

#

then I can see these events have been created ex: payment_intent.created payment_intent.succeeded & charge.succeeded

lavish sluice
#

The Stripe SDK would create ideompotency keys if you code doesn't specify ideompotency keys.

faint needle
lavish sluice
faint needle
#

Yes I understand this. The thing is I want to clear , Is that enough to send ideompotency-key when creating paymentIntent only like below ?

#

$idempotency_key = (string) Str::uuid().v4();

#

Is above correct ?

lavish sluice
#

It looks good to me.

faint needle
#

Thank you

#

Also do I need to send the ideompotency-key witin this function when submit the payment form?

lavish sluice
#

At the client-side? no you don't need.

faint needle
#

Thank you ๐Ÿ˜