Forte Checkout - Hide Attributes

Modified on Mon, 29 Jul, 2024 at 2:00 PM

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"
b. billing_name_attr="edit,required"

required

Makes the field required for the customer

a. billing_postal_code_attr="required"
b. billing_postal_code_attr="edit,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”


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article