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:
<button id='button4' api_login_id=<?php echo $api_login_id; ?> version_number=<?php echo $version_number; ?> callback="oncallback" allowed_methods="echeck" method=”sale” total_amount="1.00" utc_time=<?php echo $utc; ?> signature=<?php echo $hash; ?> order_number=<?php echo $order_number; ?> collect_shipping_address="true" shipping_country_attr="hide" shipping_email_address_attr="hide" shipping_phone_number_attr="hide" >Pay now</button>
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”