#just4skiillz

1 messages · Page 1 of 1 (latest)

twilit templeBOT
echo eagle
#

Are you logged into your google account and do you have a card added to your google pay wallet? Also are you in Chrome?

silver crane
#

ok Iam testing before implementing in the mobile app i'm working on for a client, so I am in firefox, with no card added, I Was trying to render the option of paying with google pay

echo eagle
#

You need all the above for google pay to show

#

You also need to be in a country that accepts google pay

silver crane
#

ok in the future if a client is in the mobile app, how is it detecting if he has a google pay wallet? Im in Canada

echo eagle
#

How are you doing payment element in a mobile app?

silver crane
#

i did not yet, for now im my app, im just making a paymentIntent with method payment type of "card", but i need to provide google pay option to customer so I was trying the payment element tutorial maybe i did the wrong tutorial

echo eagle
#

Payment element is for the web

silver crane
#

ohhh

echo eagle
#

I assume this is an android app?

silver crane
#

I doing react nativ app so it will be android and ios

echo eagle
silver crane
#

this is what Im getting in my app:

#

is it the wrong interface?

echo eagle
#

Looks correct to me

silver crane
#

yes still don't have more then one payment method

echo eagle
#

Which payment methods are you expecting?

silver crane
#

this is my backend:
app.post("/pay", async (req, res) => {
try {
const { name, amount } = req.body;
if (!name) return res.status(400).json({ message: "Please enter a name" });
const paymentIntent = await stripe.paymentIntents.create({
amount: Math.round(amount * 100),
currency: "CAD",
payment_method_types: ["card"],
metadata: { name },
});
const clientSecret = paymentIntent.client_secret;
res.json({ message: "Payment initiated", clientSecret });
} catch (err) {
console.error(err);
res.status(500).json({ message: "Internal server error" });
}
});

#

In my payment method type i need to add google pay

echo eagle
#

You only pass card

#

But google pay is included in card payment method

#

Did you follow the doc I sent you earlier?

#

It has a whole section on enabling google pay