#karsh - billing details
1 messages · Page 1 of 1 (latest)
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 ?
Gotcha. And they're visible on the order in the Stripe dashboard?
not sure if this link works for you https://dashboard.stripe.com/test/payments/pi_3LdEV6KWokmZWsWf11yKoAyd
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
if not,
Ah
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So you only set the country in billing details on the order object
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:
Are you still here?
I have 2 additional questoins:
-
There are 2 webhook events being sent, as far as I can see they're identical... What is the difference?
-
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
No worries take your time
So yeah for your original question you are confusing concepts. You pass billing method details in payment method data
It can be confusing though
If you want that to show directly on the order, you have to pass it where the country is passed here: https://dashboard.stripe.com/test/logs/req_jeb3Cpt9Nnmurb
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you send the two event ID's so I can compare?
I believe you can pass receipt_email on the payment intent for receipts: https://stripe.com/docs/receipts#automatically-send-receipts-when-payments-are-successful
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"
the documentation here says this... but again, I don't see the difference so I'm not sure which one is better to use. https://stripe.com/docs/orders/create-and-process#server-side-confirmation
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