Use this guide to embed the Pay with AgentiaPay button on your product pages. This button securely redirects customers to the AgentiaPay checkout page with your product details.
<script src="https://agentiapay.com/integration.js"></script>
<button onclick="agentiaPayCheckout({
title: 'Rich Dad Poor Dad',
price: 100,
quantity: 1,
uid: 'YOUR_UID',
weburl: 'https://www.agentiapay.com/products',
email: 'youremail@example.com'
})">
Pay with AgentiaPay
</button>| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Product name |
| price | number | Yes | Product price in PKR |
| quantity | number | Yes | How many items being bought |
| uid | string | Yes | Your AgentiaPay seller ID |
| weburl | string | Yes | Your products page URL |
| string | Yes | Your registered email |
<div class="product">
<h2>Rich Dad Poor Dad</h2>
<strong>Price: Rs. 100</strong>
<button onclick="agentiaPayCheckout({
title: 'Rich Dad Poor Dad',
price: 100,
quantity: 1,
uid: 't4tw771YekVo5eT9h29bXV2',
weburl: 'www.amazon.com/Rich-Dad-Poor-Teach-Middle/dp/1612680194',
email: 'youremail@gmail.com'
})">
Pay with AgentiaPay
</button>
</div>Click the button below to test a live redirect using demo data:
title, price, and uid in variables to make it dynamic.