#ak@sh-checkout-india

1 messages ยท Page 1 of 1 (latest)

placid copperBOT
short crag
#

Hi ๐Ÿ‘‹

We can only help with the Stripe API side of things. Do you have question about the Stripe APIs?

wraith rain
#

Well actually, my server-side code works fine. But the thing is it only works for "card". I at least need Google Pay to be in there. Btw, I am from India, and it heard only the test for Google pay won't work right? The normal integration should be fine? I'm kinda new so not sure

#

This is my api

  console.log("Process payment called...");

  let event = req.body.event;
  let price = req.body.price;

  const lineItems = [
    {
      price_data: {
        currency: "inr",
        product_data: {
          name: event,
        },
        unit_amount: Math.round(price * 100),
      },
      quantity: 1,
    },
  ];

  const session = await stripe.checkout.sessions.create({
    payment_method_types: [
      "card"
    ],
    line_items: lineItems,
    mode: "payment",
    success_url: "http://localhost:8080/#!/Temp",
    cancel_url: "http://localhost:8080/#!/Temp",
  });

  res.json({ id: session.id });
});```
short crag
#

Google pay wont work in india, that is correct

wraith rain
#

So, Google Pay can't be in the checkout page in India?

short crag
#

Correct

wraith rain
#

Alright. Thank you then

short crag
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚

wraith rain
short crag
#

Is your question "Will Link work in Inda"

wraith rain
#

Yeap

short crag
wraith rain
#

Got it. Thank you