#street-prb-billingdetails
1 messages · Page 1 of 1 (latest)
Hi 👋
How are you collecting the customer's name & email? The Payment Element does not necessarily do this automatically.
Sorry, I meant the PaymentRequestButtonElement, we have enabled the requestPayerEmail / requestPayerName properties to collect.
(However, we are also collecting it manually when the customer Payment Element - let us know if it's actually possible that Stripe can send us this information as well in the /confirm route)
Okay do you have an example Payment Intent ID I can check?
this for example: pi_3N30KAFfzadd3IOM0NXxp40K
This information is stored on the Payment Method in the billing_details. You will need to retrieve it from the server-side after the payment intent confirms successfully
street-prb-billingdetails
ok, got that, but is there anyway Stripe can include before we get to the server-side, along with payload that is sent with the /confirm route?
Not in the response to the /confirm call but you can listen to the paymentmethod event : https://stripe.com/docs/js/payment_request/events/on_paymentmethod
This will return an object that includes the billing details provided by the customer