Let us assume you want to sell iPhone 12 max smartphone cases for ₹399. You create a Payment Button titled Limited Edition iPhone 12 Phone Case to sell the product. You can ensure that when the customer clicks the Payment Button, the quantity to be purchased appears pre-selected as 1.
When you embed the button code on your website, add the following parameter:
Copydata-prefill.amount.iphone_12_max_case="1"
The parameter structure is explained below:
Field Name
Amount Field Label
Value
data-prefill.amount
.iphone_12_max_case
1
Handy Tips
Ensure that the field-level validations are in place. If you enter a character in the amount field, say 1oo or Hundred, the field will not get populated.
If the amount field label consists of two words, add an underscore as a separator of two words. For example, the two words in the iPhone 12 Max Case field should be separated by an underscore. That is, iphone_12_max_case.
If the item is out of stock or has less quantity available, though the field will appear prefilled, the customer will not be able to purchase the product.
Let us continue with the iPhone Case example. Assume you also provide gift wrapping services at a fixed cost of ₹30. You want to ensure that this field appears pre-selected during Checkout.
When you embed the button code on your website, add the following parameter:
Copydata-prefill.amount.gift_wrap="1"
The parameter structure is explained below:
Field Name
Amount Field Label
Value
data-prefill.amount
.gift_wrap
1
Handy Tips
Ensure that the field-level validations are in place. If you enter a character in the amount field, say 1oo or Hundred, the field will not get populated.
If the amount field label consists of two words, add an underscore as a separator of two words. For example, the two words in the Gift Wrap field should be separated by an underscore. That is, gift_wrap.
Ensure that the field is marked optional.
If the item is out of stock or has less quantity available, though the field will appear prefilled, the customer will not be able to purchase the product.
Suppose you are the director of an NGO that is raising funds for flood relief. Apart from the relief packages such as sanitation kits (worth ₹750) and dry ration kits (worth ₹1000), you are adding a field to collect cash.
You want to prefill the Cash field for donors. And, you want to show ₹500 as a suggested donation amount. Donors can donate this amount, ₹500, or change the amount and then pay.
When you embed the button code on your website, add the following parameter:
Copydata-prefill.amount.cash="500"
The parameter structure is explained below:
Field Name
Amount Field Label
Value
data-prefill.amount
.cash
500
Handy Tips
Ensure that the field-level validations are in place. If you enter a character in the amount field, say 1oo or Hundred, the field will not get populated.
If you are using a custom field name for amount, ensure that the field name is entered in lowercase and is separated by an underscore. For example, if the amount field name is Cash Funds, enter the suffix as cash_funds.
Pre-population of the amount field is subject to the Minimum and Maximum Input Price set for the amount field. For example, if the Maximum Input Price has been set as ₹1000, the Cash field cannot be prefilled with a value higher than ₹1000.