#karsh - billing details

1 messages · Page 1 of 1 (latest)

weak grove
#

Can you share the event ID?

pale coral
#

evt_1LdEVJKWokmZWsWfzo6CqMUi

#

I found the billing details when retrieving the related paymentintent pi_3LdEV6KWokmZWsWf11yKoAyd

but this makes me wonder if I'm doing something wrong, I'm expecting these billing details to show up with the order object ?

weak grove
#

Gotcha. And they're visible on the order in the Stripe dashboard?

pale coral
#

if not,

weak grove
#

Ah

#

So you only set the country in billing details on the order object

pale coral
#

Yes, I think the paymentElement has done that automatically for me

#

I guess I'm confusing two concepts... I want to pass the address, name & email to the order.
I thought I'm doing so with Stripe.js:

pale coral
#

Are you still here?

weak grove
#

Yes

#

Discord is really busy

#

Sorry

#

One sec

pale coral
#

I have 2 additional questoins:

  1. There are 2 webhook events being sent, as far as I can see they're identical... What is the difference?

  2. I want stripe to send a receipt to the receipt email. Hwowever I don't see documentation on how to set that when submitting the order payment, can I somehow do that? https://stripe.com/docs/receipts

Send payment or refund receipts automatically.

#

No worries take your time

weak grove
#

So yeah for your original question you are confusing concepts. You pass billing method details in payment method data

#

It can be confusing though

#

Can you send the two event ID's so I can compare?

pale coral
#

I'm not sure where that country is passed, I'm guessing the PaymentElement does it behind the scenes

#

2 webhook event ids:

order.completed: "evt_1LdEVJKWokmZWsWfKRP41djY"
order.payment_completed:"evt_1LdEVJKWokmZWsWfzo6CqMUi"

weak grove
#

Ah ok. You can just pick 1 then. They're interchangeable. I'm not sure why we create 2 events there, but you should be able to use either