#abvfx

1 messages · Page 1 of 1 (latest)

hybrid kernelBOT
kind creek
twilit hornet
#

Nice! Thanks! Looks like payment_intent_data.statement_descriptor should work.

kind creek
#

Well not statement descriptor

#

description

twilit hornet
#

Right. Doesn't add to the email

kind creek
#

Description doesnt?

twilit hornet
#

So something like this?

#

const paymentIntent = await stripe.paymentIntents.create({ description: 'Digital Code: 123456' });

kind creek
#

I thought you were using checkout

#

I linked the param to pass above

twilit hornet
#

Yes, I'm using the prebuilt checkout. So "description" can go within the session?

kind creek
#

Yes

#

The param I linked above

#

under payment intent data

twilit hornet
#

I'm not sure how this is added.

`const session = await stripe.checkout.sessions.create({
line_items: [
{
price: 'price',
quantity: 1,
},
],
mode: 'payment',

    descriptor: 'Digital Code: 123456',

    success_url: `${DOMAIN}/success.html`,
    cancel_url: `${DOMAIN}/cancel.html`,
});`
#

I'm not very familiar with how Stripe works just yet.

kind creek
#

Under payment_intent_data.description

twilit hornet
#

Oh, ok.

#

I really appreciate your help. Does payment_intent_data live in the session object?

#

I think I got it working now.
line_items: [ { price: 'price_1NpJ2pDpsZoB6FuaEuZmQPES', quantity: 1, }, ], payment_intent_data: { description: 'Digital Code', }, mode: 'payment',

#

Thanks!

kind creek
#

Yep