Add billing address information to tokenize method

I’m using the Web Payments SDK to take card payments. I successfully integrated the sdk and am currently taking payments.
However, the standard setup for taking card payments does not come with any form for taking Billing address of the customer.

The card payment method tokenize returns a TokenResult.

How to pass the billing address in tokenize() method?

The Square Web Payments SDK does not directly include a built-in form for collecting billing address information as part of the card tokenization process. However, you can collect the billing address information separately in your web application and then pass it to the Customers API to create a customer profile. Once you’ve created the customer you can pass the customer_id to the CreatePayment request so the customer is associated to the payment. :slightly_smiling_face: