#amit-maharxan-PaymentIntent

1 messages · Page 1 of 1 (latest)

stark heath
#

👋 happy to help

#

could you please share the request id that generated the clientSecret?

tiny widget
#

req_289PseNpCIJi0n

tiny widget
#

i'm waiting

stark heath
#

sorry just looked at your request

#

that's not the one I was looking for unfortunately

#

are you creating the payment method on the front-end?

#

or are you using something like SetupIntent?

#

or PaymentIntent?

tiny widget
#

yes.. i am creating payment intent..

stark heath
#

could you please send the request id of the Payment Intent creation?

#

or the Payment Intent ID?

tiny widget
#

req_4OtRZbseFb8EAT

stark heath
#

taking a look

#

there's a client secret on that Payment Intent

tiny widget
#

i mean in this part

paymentRequest.on('paymentmethod', function(ev) {
// Confirm the PaymentIntent without handling potential next actions (yet).
stripe.confirmCardPayment(
clientSecret,
{payment_method: ev.paymentMethod.id},
{handleActions: false}
).then(function(confirmResult) {
// check result
});
});

the clientSecret is null/undefined..