#dominicb9936
1 messages ยท Page 1 of 1 (latest)
Yes I think it is possible to get null for any of those address fields
Is there a way to obtain the full billing address somehow?
Good question. Checking in to whether the PRB can specifically request this info
Are you looking for billing info or shipping info?
Billing info in this case. To give you more context, we are collecting billing info in the checkout process with our own billing address form. But in the case of the express checkout (PaymentRequestButton), our form is skipped, but we have an issue if we cannot confidently retrieve the billing info from your end.
๐ stepping in here
When you create your paymnet Request object you want to set requestPayerName: true which will also force billing address collection (see: https://stripe.com/docs/js/payment_request/create#stripe_payment_request-options-requestPayerName)
Right! I now remember reading about it when we implemented this button and it is set to true.
So then, when it says it forces to collect billing address, is it always complete with fields like country, postal code and city? Or is it still possible to have null values?
@pseudo tendon edited my message above to confirm something with you
Hmm good question. I believe it always forces collection of these but let me double check.
Thanks! ๐
Okay @gleaming trout, sorry for the delay!
Confirmed that this will enforce full address collection.
Superbe! Merci ๐
yes?
Okay so there was one caveat to the above that I figured out
Basically the billing address that is collected is based on what the customer inputs when they add their PaymentMethod in their Google Wallet
It appears that Google actually does allow you to add a PaymentMethod without specifying the whole billing address
You can just add postal + country in that case
In which case the whole billing address won't be collected within Stripe. We just collect whatever the customer input when they added their Card to their wallet