#tomh0027

1 messages · Page 1 of 1 (latest)

silk cloudBOT
flint nymph
rugged orbit
#

so if I use PaymentElement, does it automatically show google pay as option?

flint nymph
#

Yes if the device is eligible for Google Pay (having Google Pay wallet with a card saved)

rugged orbit
#

how can I check if eligible or not?

flint nymph
#

With Payment Element, there is no function provided for you to check if Google Pay is eligible on customer's device

rugged orbit
flint nymph
#

No, it's not needed for web payment

rugged orbit
#

but why I Google Pay button doesn't show up?

flint nymph
#

Can you share your development website, so that I can have a check?

rugged orbit
#

url?

flint nymph
#

Yes

rugged orbit
#

it's on localhost

flint nymph
#

How can I go to the payment page?

rugged orbit
#

I put ExpressCheckoutElement to see if that works, but it's showing Link pay button only

flint nymph
#

Checking it now

#

Can you share the Subscription ID (sub_xxx) used in this page?

rugged orbit
#

what do you mean subscription id?

flint nymph
#

In this checkout page, it shows the subscription sign up page. Do you create Subscription first and render Payment Element by setup intent client secret?

flint nymph
#

Ah I see

#

Let me double check

#

Can you share the code of creating Payment Element?

#

I'm able to see Google Pay in my own integration with deferred intent flow

rugged orbit
flint nymph
#

Where do you initialise <Elements>? I don't see it in this code

rugged orbit
#

I wrapped with this component

flint nymph
#

This page is served through HTTP. Google Pay is only supported in HTTPS

#

This pre-requisite applies to Payment Element, Payment Request Button and Express Checkout Element

rugged orbit
#

I see

flint nymph
#

I'd recommend serving the website in HTTPS and try it again

rugged orbit
#

ok

#

and the other question is if return url is mandatory in confirm payment

flint nymph
#

Yes, return_url is a required field

rugged orbit
#

is there any possibility to stay on the page?

flint nymph
rugged orbit
#

can you tell me if google pay and Link are redirect based payment or not?

flint nymph
#

They are non-redirect based payment methods

#

I'd recommend giving a try in test mode

rugged orbit
#

got you
thanks for your help