#Pete-emails
1 messages ยท Page 1 of 1 (latest)
Yes it is.
Test mode doesn't send out some emails that would normally go out in live mode
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
});
Are you entering the exact email that is on your Stripe account?
yep, I get the email, but it only contains things like the name, vs the description
Test mode emails only go to that address
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
specifically that field showing up in the emails ๐
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Interesting. Do you have the payment intent ID for this payment? (pi_123)
You will want to set payment_intent_data.description when creating the Checkout Session 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.
You bet; let me grab one. Sorry didn't see this message
pi_3JjW2xEPgNxP31hs1lrpaUtg
(test mode)
Thank you!
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:
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.
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 !
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.
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 ๐
Thank you so much for that! Will definitely take a look at those.
np! have a lovely day ๐