To make these parameters editable, required, or hidden, pass the parameter suffixed with attr
and one or more of the following attributes:
Attribute | Description | Example |
edit | Makes the field editable for the customer | a. billing_name_attr="edit" |
required | Makes the field required for the customer | a. billing_postal_code_attr="required" |
hide | Hides the field from the customer; however, Checkout passes the parameter with the transaction behind the scenes. This attribute cannot be combined with the edit or required attributes. | billing_name_attr="hide" |
Example:
Alternative
You can also try setting the following parameter: “collect_shipping_address” to “False” , and this will disable the shipping entry for your customers.
For the country, please let us know if you are using the following: billing_country=“US”