Collect physical addresses and phone numbers
Learn how to collect addresses and phone numbers during one-time payment flows.
Collect an address
To collect a customer’s billing address in a checkout session, pass the billing_
parameter when you create a Checkout session. You have to specify whether to always collect the billing address (required
) or only when it’s necessary (like for tax calculations) (auto
).
To collect a customer’s shipping address in Checkout, pass the shipping_
parameter when you create a Checkout session.
When you collect a shipping address, you must also specify which countries to allow shipping to. Configure the allowed_
property with an array of two-letter ISO country codes.
When the customer completes the session, the Checkout session object saves the collected shipping address on the shipping_
property and includes it in the payload of the checkout.
webhook. You can also see shipping information in the Dashboard on the payment details page.
Collect a phone number
To collect a customer’s phone number in a checkout session, pass the phone_
parameter when you create a Checkout session.