#karanpandit.

1 messages · Page 1 of 1 (latest)

final quiverBOT
crude gust
quaint reef
#

I'm using the checkout session process to complete the payment, but it's not accepting

payment_method_types: ["google_pay"]

crude gust
#

yeah, that is normal, there is no such thing as that payment_method_type and it's not mentioned in any Stripe docs.

quaint reef
#

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,
});

crude gust
quaint reef
#

even though it was not visible on the normal payment link created using Dashbaord.

crude gust
#

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)

quaint reef
#

Do you know another method to accept UPI payments?

swift wharf
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

swift wharf
quaint reef
#

no

#

@swift wharf even though it was not visible on the normal payment link created using Dashbaord.

swift wharf
#

Could you please share the Payment Link?

quaint reef
swift wharf
#

Still looking...

#

You only provide card as a payment method type. What happens if you skip the payment_method_types parameter?