#dishant0144_32519

1 messages ยท Page 1 of 1 (latest)

short skiffBOT
pulsar ridge
#

I am loading stripe's payment element without creating payment intent in stripe dashboard

deep spruce
#

Securely accept payments online.

Build an integration where you can render the Payment Element prior to creating a PaymentIntent or SetupIntent.

#

In any case, Payment Intent client secret is required for any payment. It's just a matter where it should be set

pulsar ridge
#

Okay
Thanks I'll look into both options

#

If any query I'll ping here

deep spruce
#

No problem! Happy to help ๐Ÿ˜„

pulsar ridge
#

Without clientSecret can payment method validates the data
for ex. if I enter expired card number and then done payment it'll show expired card but before that one payment intent is created in stripe dashboard

#

so can we restrict that?

#

https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=payment&client=html
in this when stripe.confirmPayment is called before that payment intent is created and clientSecret is shared while confirming the payment, What if payment is failed and I again submit the request in that case new payment intent is created in stripe
Am I right?

Build an integration where you can render the Payment Element prior to creating a PaymentIntent or SetupIntent.

pulsar ridge
#

???

deep spruce
#

Thanks for waiting! Looking into it now

#

At Payment Element, it will validate the expiry of the card at the point of entering the card details. When the payment method is used in a payment some time later, i.e. after creating a payment intent, the expiry will be validated again by the card issuer

#

At the confirmPayment() is called, a Payment Intent should have been created

pulsar ridge
#

okay
got it
So before confirm payment there should be clientSecret to be present
Is that correct?

deep spruce
#

Yes!

pulsar ridge
#

Okay, Thanks again!๐Ÿ™‚

#

If in future I have any doubt or query Can I ask in this same chat?

deep spruce
#

Feel free to reach out to #dev-help if you have further question after this thread is closed