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 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
 
Last edited:
Top