#moezz-Payment

1 messages · Page 1 of 1 (latest)

crimson musk
#

Hi there, can you send me the PaymentIntent ID?

foggy vault
#

Hello Jack

#

sure

#

Id: pm_1LKVDsBkEvl4irOR63KxnKer

#

and another one pm_1LD9WyBkEvl4irORqP1qK5UE

crimson musk
#

This is the PaymentMethod ID, I need the PaymentIntent ID, which starts with pi_

foggy vault
#

here we go

#

first client: pi_3LISyHBkEvl4irOR0ikI8Y8I

#

second client: pi_3LD9XABkEvl4irOR1dp8tjgk

crimson musk
#

Thanks, both payment intents are in requires_action status, so it is waiting for customer's action to authorize the payment (i.e., 3DS)

foggy vault
#

thank you. So, They have to contact their bank, right?

crimson musk
#

No, you need to bring your customer to you webpage and and call stripe.handleNextAction to start the authentication flow

foggy vault
crimson musk
foggy vault
#

Page not found!
Sorry, but the page you were looking for couldn't be found.

crimson musk
#

That's strange, anyway this is how you call handleNextAction in your webpage.

  clientSecret: '{PAYMENT_INTENT_CLIENT_SECRET}'
}).then(function(result) {
  // Handle result.error or result.paymentIntent
});```
crimson musk
#

The handleNextAction is already deprecated, you should use confirmPayment instead.