#just4skiillz
1 messages · Page 1 of 1 (latest)
Are you logged into your google account and do you have a card added to your google pay wallet? Also are you in Chrome?
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
You need all the above for google pay to show
You also need to be in a country that accepts google pay
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
How are you doing payment element in a mobile app?
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
Payment element is for the web
ohhh
I assume this is an android app?
I doing react nativ app so it will be android and ios
Looks correct to me
yes still don't have more then one payment method
Which payment methods are you expecting?
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