API Reference

Set Checkout Fields as Read-Only

You can set Checkout fields such as contact and email as read-only. This prevents the customers from editing their contact numbers and email addresses on Checkout.

Sample Code🔗

Here is a sample request and response using these parameters.

Request Parameters🔗

List of request parameters to be used with the Create Payment Link API to make contact and email fields non-editable.

options mandatory

array Options to set contact and email as read-only fields on Checkout. Parent parameter under which the checkout and readonly child parameters must be passed.

checkout mandatory

array The parameter for the Checkout section. readonly is its child parameter.

readonly.contact optional
boolean Used to set the contact field as readonly. When set to 1, customer will not be able to edit this field. When set to 0, the customer will be able to enter phone number. By default, this is set to 0.
readonly.email optional
boolean Used to set the email field as readonly. When set to 1, customer will not be able to edit this field. When set to 0, the customer will be able to enter email address. By default, this is set to 0.
×