#karanpandit.
1 messages · Page 1 of 1 (latest)
hi, make sure you're testing from a compatible browser with a card set up : https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-testing
I'm using the checkout session process to complete the payment, but it's not accepting
payment_method_types: ["google_pay"]
yeah, that is normal, there is no such thing as that payment_method_type and it's not mentioned in any Stripe docs.
const session = await stripe.checkout.sessions.create({
payment_method_types: ["card"], // Add other payment methods as needed
line_items: [
{
price_data: {
currency,
product_data: {
name: "Nulark Christmas Hamper",
},
unit_amount: amountInPaise,
},
quantity: quantity,
},
],
mode: "payment",
success_url,
cancel_url,
customer_email: personalInfo.email,
metadata: personalInfo,
});
Google Pay is included as part of payment_method_types:["card"]. If it's not appearing, then make sure you're testing from a compatible browser with a card set up : https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-testing and that you're not located in India as it's not supported there(see the notes on that link).
as I mentioned in my previous message, Google Pay is not available in Stripe if you are located in India
(screenshot from the docs linked in all my previous messages)
Do you know another method to accept UPI payments?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
Is this related to your previous question?
no
@swift wharf even though it was not visible on the normal payment link created using Dashbaord.
Could you please share the Payment Link?