We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

How to remove non-required fields from checkout or My Account for PayU Argentina, Brazil, Chile, Colombia and Peru?

If you're using PayU Argentina, PayU Brazil, PayU Chile, PayU Colombia, or PayU Peru as your payment provider, not all fields shown when adding a payment method during checkout or in the My Account section are mandatory.

Mandatory fields

Cardholder name

Card number

Credit card expiration date

CVV

Identification type and number

Phone number (only for PayU Chile)

All other fields are non-required (i.e. first or last name, address information, etc.) and can be removed as described in the below example.

You are able to remove the non-mandatory fields by updating the template MyAccount Wallet Component for the My Account section and the template Payment Components for checkout.

You need to remove the part of the code used for this field. For example, you would remove this part in order to remove the Last name field from the checkout form:

HTML
<div class="cc-fields-layout__field cc-fields-layout__first-name">
      <cc-text-input placeholder="'First name' | t"
                     ng-model="credit_card.firstName.value"
                     on-change="credit_card.firstName.onChangeCallback"
                     ng-disabled="credit_card.firstName.disabled"
                     icon="'client'"
                     ng-required="credit_card.firstName.required"
                     ng-readonly="credit_card.firstName.readonly"
                     maxlength="credit_card.firstName.maxlength"
                     valid="credit_card.firstName.valid"
                     name="'firstName'"
                     data-e2e="cc_first_name">
      </cc-text-input>
    </div>

Last updated: