#surgical - checkout
1 messages · Page 1 of 1 (latest)
Can you share an example event for me to look at?
Gotcha, thanks. Unfortunately that's not currently possible directly.
One workaround would be setting the metadata on the payment link, and then using a webhook handler for checkout.session.completed to propagate the metadata you need to the payment intent/charge
Okay, we can do this. However, I'm coming across another issue, we want to send an email whenever these types of purchases come through. Since we've disabled sending stripe receipts at the platform level, we're grabbing the charge_id and then updating the receipt email
The receipt_email is getting updated, but it's not being sent
the receipt email at first is null, and then we do: const updatedCharge = await stripe.charges.update( charge.id, { receipt_email: charge.billing_details?.email }, { stripeAccount: stripeEvent.account, } );
we can see it getting updated from null:
Even hardcoding to my personal email does update the charge object, but doesn't get the meail. Does it not send emails in test mode?
Correct, emails are not sent automatically in test mode
NP!