#Ninja man
1 messages · Page 1 of 1 (latest)
what do you need
"payment_intent": "pi_3MZcNAJRvug0th0T0tJ8eTQT",
Also, you will prob say everything looks fine. But no invoice ever is being sent. I have tried to buy my self too. I can setup a $1 test product for you to buy too
Let me look
Give me a sec
So the issue is your settings
You need to enable the Email customers about successful payments Dashboard setting to have Stripe send invoice summary emails to your customers. You can prevent Stripe from sending these emails by disabling the setting.
That setting is off in your account right now
are you sure? im pretty sure i enabled everything, but where can i find this specifc setting?
ahhh this one?
Yep
im 99% i turned that on before, very very very weird
I think i had it on for a while and it never worked so i turned it off. Maybe cause of this?
Yeah that doesn't apply for post payment invoices
You need that setting on
Otherwise you send the invoices yourself
So if i have Succesful payments turned on now, and this is my checkout session, will everything work?:
const session = await stripe.checkout.sessions.create({
line_items: [
{
price: lineItem,
quantity: 1,
},
],
mode: "payment",
automatic_tax: {
enabled: true,
},
invoice_creation: { enabled: true },
allow_promotion_codes: true,
success_url: `${BASE_URL}/purchase-success`,
cancel_url: `${BASE_URL}/checkout/`,
})
Yep it looks good to me
ah jesus now i noticed... when i turned it on and refreshed the page, it was disabled again. Cause i never pressed the save button which i never did before either haha... Damn i think the UX could be better there actually, it's quite hidden down there
Ah yeah that's a good callout