#Srujan - javascript

1 messages · Page 1 of 1 (latest)

acoustic lotusBOT
naive lotus
#

This is for google pay flow

#

So if a customer goes through the google pay flow what would this id be?

vital sorrel
#

Okay. That would be the ID for the Payment Method object created in Stripe

naive lotus
#

I see. So if we're using CardElement, the same flow we pass cardElement which is ``` const cardElement = elements.getElement(CardElement);


 like so ```const confirmPaymentResponse = await stripe.confirmCardPayment(
              clientSecret,
              {
                payment_method: {
                  card: cardElement
                },
                receipt_email: userInfo.email
              }
            );```
#

is that also under the hood the id for the payment method object?

vital sorrel
#

Sorry for the delay, this didn't piing me for some reason

#

This is client-side javascript so no, it's not the same thing

naive lotus
#

thanks!