#pete-email-receipt

1 messages · Page 1 of 1 (latest)

tired python
#

can you share an ID? is this a PaymentIntent or an Invoice?

earnest owl
#

You bet, PaymentIntent.

#

pi_3JjQquEPgNxP31hs0uf7vWZd

#

(test mode)

#

When i issue an email, the titles "Package Deal" and "Spot Sub Jersey" are the only things that are included.

tired python
#

ah this was created by a CheckoutSession
try passing payment_intent_data.description on the CheckoutSession, I think that might show up on the PaymentIntent too but yeah for now I think Product description doesn't show up on the email, only name, try my suggestion and see if that works

earnest owl
#

👍 I'll give that a try!

earnest owl
#

Sorry, following up here; so right now i'm doing a checkout.session.create with line_items defined as:

{
price_data: {
  currency: 'usd',
  product_data: {
     name: 'My Label',
     description: 'my description',
     images: [imageUrl]
  },
  unit_amount: 2900
},
quantity: 1
}

so I should change how I'm doing this?

#

@tired python

tired python
#

this is not inside price_data but top level on the CheckoutSession obj

earnest owl
#

Hmm, so I would need to parse each of the line items to pull them out into the description?

tired python
#

yes, give it a try in test mode, pass anything there like "testing 123, item 456" etc and see if it shows up on your charge receipt