#dogge_pau

1 messages · Page 1 of 1 (latest)

dusk swallowBOT
echo sphinx
#

Hi, let me help you with this.

#

What's not working exactly?

#

How are you doing it currently?

neon spire
#

its an ecommerce website

#

let me share u code

#

const session = await stripe.checkout.sessions.create({ shipping_address_collection: { allowed_countries: ["IN"] }, payment_method_types: ["card"], mode: "payment", success_url: process.env.CLIENT_URL + "/success", cancel_url: process.env.CLIENT_URL + "?success=false", line_items: lineItems, metadata: { 'size' : 'M' } });

echo sphinx
#

Where do you expect to receive it?

neon spire
#

in stripe dashboard

echo sphinx
#

On which page are you looking exactly?

neon spire
#

payments

echo sphinx
#

That page contains PaymentIntents objects, and you are setting the metadata on Checkout Session object.

neon spire
#

then where i should add the custom data

neon spire
#

const session = await stripe.checkout.sessions.create({ shipping_address_collection: { allowed_countries: ["IN"] }, payment_method_types: ["card"], mode: "payment", success_url: process.env.CLIENT_URL + "/success", cancel_url: process.env.CLIENT_URL + "?success=false", line_items: lineItems, payment_intent_data.metadata: { 'size' : 'M' } });

#

something like this?

echo sphinx
#

This is not a valid JavaScript

#
payment_intent_data:
    metadata: {
        size: 'M'
    }
}
neon spire
#

okk thanks

echo sphinx
#

Happy to help.

neon spire
#

i am from india and i want to use UPI payment how do i do it?

echo sphinx
#

Do you know if Stripe supports this?

neon spire
#

yes they said i have to contact them to enable it first

#

if u can confirm me if its actually possible that would be really helpful or tell me from where i should confirm it

echo sphinx
neon spire
#

okks