#abvfx
1 messages · Page 1 of 1 (latest)
Should be able to use description https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-description
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Nice! Thanks! Looks like payment_intent_data.statement_descriptor should work.
Right. Doesn't add to the email
Description doesnt?
So something like this?
const paymentIntent = await stripe.paymentIntents.create({ description: 'Digital Code: 123456' });
Yes, I'm using the prebuilt checkout. So "description" can go within the session?
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.
Under payment_intent_data.description
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!
Yep