Prefilling fields on the checkout page

When you create a checkout page, you get the URL of the checkout page which you can directly share with your customers to collect payments or you can embed it in your website or hyperlink under buy now button. Now, you can make some changes in the URL of this checkout page and have the fields filled out when your customer access the customized URL.

To add the parameter, you have to insert a question mark symbol(?) at the URL and start adding parameters. To add more than one parameter, insert "&" symbol after the first one and the second one.

Normal URL: https://payments.pabbly.com/subscribe/61b488bec847c612566cb8ff/consumption-fee

Customized URL: https://payments.pabbly.com/[email protected]&country=DE&coupon_code=2k22

The parameters that can be passed are:-

👉 ?customer_id={specific customer ID}
Lets you prefill all the data on the checkout page associated with a particular customer.

👉 ?first_name={value}

👉 ?last_name={value}

👉 ?email={email address}

👉 ?country={country code}

👉 ?state_code={state code as per selected country}

👉 ?month={01-12}

👉 ?year={2022-2042}

👉 ?quantity={quantity}

👉 ?coupon_code={coupon code}

For pre-filling the custom fields, check the following post -

For embedded checkout pages:-

You can pass parameters in the URL that's with the embed code to have the information prefilled.
.
Default embed code:-
<script src="https://payments.pabbly.com/api/checkout/embed.js..."></script>
.
Embed code with prefill parameters:-
<script src="https://payments.pabbly.com/api/checkout/embed.js..."></script>

1642415295175.png


In multi-plan checkout page, if you want to have a particular plan selected as default:-

If you're offering more than one plan on a single checkout page URL through multi-plan feature, you can pass a parameter in the multi-plan URL to have a plan selected as default. The parameter is:

?preferred_plan=(plan id)

Normal multi-plan URL: https://payments.pabbly.com/checkout/61ee40aae9c26252bed97544

Multi-plan URL with preferred plan parameter: https://payments.pabbly.com/checkou...97544?preferred_plan=61d934d4e9585b61aa4ab6a2


For having addons selected as default on the checkout page and selecting addon quantity:-

You can sell additional products with your base plan by creating addons and offering this on the checkout page. Now if you want to keep these addons selected as default, you can pass the following parameter in the checkout page URL. Also, the quantity of the addons can be selected by passing the parameter. The parameter is:

"?preferred_addon={addon ID}&preferred_addon_quantity={units}"

You can have multiple addons selected by separating addon ID by commas.

Normal checkout page URL: https://payments.pabbly.com/subscribe/6173b385eb416e511a8033a6/bundle-price-plan

Checkout page URL with preferred addon parameter: https://payments.pabbly.com/subscribe/6173b385eb416e511a8033a6/bundle-price-plan?preferred_addon=6173b6baeb416e511a803430,6173b6eceb416e511a803432&preferred_addon_quantity=2,3&fbclid=IwAR2tYswzVXVWcti-vwao7dSxyAl5i1pU9oiv_NX2a21hI08C9u6FXGL2TKE
 
Last edited by a moderator:
Top