#Pete-emails

1 messages ยท Page 1 of 1 (latest)

obtuse mural
#

Hello, is this in test mode?

violet sundial
#

Yes it is.

obtuse mural
#

Test mode doesn't send out some emails that would normally go out in live mode

violet sundial
#

const session = await stripeInstance.checkout.sessions.create({
line_items: lineItems,
mode: 'payment',
payment_method_types: ['card'],
metadata: {
storeId: req.body.input.storeId
},
success_url: ${YOUR_DOMAIN}${req.body.input.storeId}/success,
cancel_url: ${YOUR_DOMAIN}${req.body.input.storeId}?canceled=true
});

obtuse mural
#

Are you entering the exact email that is on your Stripe account?

violet sundial
#

yep, I get the email, but it only contains things like the name, vs the description

obtuse mural
#

Test mode emails only go to that address

violet sundial
#

IE:

#

the name looks to be the only thing that is included.

#

Trying to get the description so folks have an accurate sense of what they are receiving

violet sundial
#

specifically that field showing up in the emails ๐Ÿ™‚

obtuse mural
#

Interesting. Do you have the payment intent ID for this payment? (pi_123)

violet sundial
#

You bet; let me grab one. Sorry didn't see this message

#

pi_3JjW2xEPgNxP31hs1lrpaUtg

#

(test mode)

obtuse mural
#

Thank you!

violet sundial
#

Looks like payment_intent_data.description will add a "Summary". However it's not quite going to create the clean look that the line items have. I tossed in a test string for checking; now loading it up with a big order.

I'm curious how it will create large orders.

#

I really don't want to create my own mail template via mailgun, as y'all have a wonderful system in place but it seems to be lacking the description for the product line items

#

don't happen to have this portion open sourced that I could contribute too instead of building my own template do ya? ๐Ÿ™‚

#

IE almost like the checkout page here:

shut hedge
#

Hi there ๐Ÿ‘‹ stepping in for Pompey and working on catching up. Our email templates are pretty limited when it comes to content customization. I'd honestly recommend that you look into building your own template with the information that you'd like to see. Even if this part of our process was open-source (will need to confirm if it is) we wouldn't be able to guarantee when proposed changes would be incorporated.

violet sundial
#

Sounds good ๐Ÿ™‚ Figured as much.

I'd love to see the line item descriptions incorporated in the future but for now will whip up a template in MJML and go from there.

I appreciate your help!

#

Thank you both @obtuse mural and @shut hedge !

shut hedge
#

Do you happen to have a link to the tool you're going to use for creating the template? This is a question I see come up from time to time and would like to expand the options that we can suggest to users.

violet sundial
#

For me personally, I love using: https://mjml.io/

It's the best in terms of maximizing compatibility with email clients and how finicky they can be with rendering HTML.

From there, I utilize mailgun.com for my sends, mostly because it's cheap and easy to setup. Very comparable to AWS SES (which i'd also use, but this client isn't in AWS so mailgun it is ๐Ÿ™‚

shut hedge
#

Thank you so much for that! Will definitely take a look at those.

violet sundial
#

np! have a lovely day ๐Ÿ™‚