#scotty-paymentelement-updatepm

1 messages · Page 1 of 1 (latest)

neon shadowBOT
limber rapids
#

scotty-paymentelement-updatepm

#

Hey @drifting sparrow ! Usually uou would collect a new PaymentMethod with a new PaymentIntent or SetupIntent and then detach the old one after that if needed

drifting sparrow
#

Hey @limber rapids, I think you misunderstood me. I'm trying to add payment method types to my form, specifically google and apple pay.

Here is my current form:

#

I want to add the options of apple and google pay for users

#

and remove iDEAL

limber rapids
#

Gotcha. So Google Pay and Apple Pay appear if your browser supports them. You don't need to do anything else for this and make sure to load over HTTPS

#

to remove iDEAL, you should disable it in your settings

drifting sparrow
#

I'm on HTTPS and I know for certain my browser supports Google Pay (I use it all the time) and it's the same as above photo

#

I also specifically turned of iDEAL in my dashboard:

Yes, it's still showing up

limber rapids
#

But did you create a new PaymentIntent after you changed that setting?

limber rapids
#

Can you give me a concrete PaymentIntent id pi_123 to look at?

drifting sparrow
#

sure

#

1 sec

#

I'm using setup intent

#

here is one:

seti_1NIe7bElq6bZFLd6E8z4z4O1

limber rapids
drifting sparrow
#

oops, sorry about that

limber rapids
#

all good, it's not always easy to know this

drifting sparrow
#

is google pay possible with setup intent?

#

this guide looks like its more for paymentintent

limber rapids
#

yes Google Pay works totally fine with SetupIntent

#

cc @drifting sparrow are you still around?

drifting sparrow
#

I followed the instructions, but I'm getting null for "paymentRequest"

in useEffect:

const pr = stripe.paymentRequest({
  country: "US",
  currency: "usd",
  total: {
    label: "Demo total",
    amount: 0,
  },
  requestPayerName: true,
  requestPayerEmail: true,
});

pr.canMakePayment().then((result) => {
  if (result) {
    setPaymentRequest(pr);
  }
});
limber rapids
#

Can you answer my exact question above please?

#

Sorry you don't need to change your code. All I need is a screenshot of what you see on that page

drifting sparrow
#

Oh

#

Sorry

#

I just see the Link button

limber rapids
#

Okay so that picture proves that your browser doesn't really support Google Pay right now

drifting sparrow
#

hmm, weird. Like I said, I use google pay all the time

limber rapids
#

can you try deleting all cookies (at least all Stripe-related cookies) and then launching your browser again?