AgentiaPay Seller Integration Guide
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.
1. Add AgentiaPay Script
<script src="https://agentiapay.com/integration.js"></script>
2. Add Buy Now Button
<button onclick="agentiaPayCheckout({ title: 'Rich Dad Poor Dad', price: 100, quantity: 1, uid: 'YOUR_UID', weburl: 'https://www.agentiapay.com/products', email: '[email protected]' })"> Pay with AgentiaPay </button>
3. Parameters
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 |
4. Example Product Section
<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: '[email protected]' })"> Pay with AgentiaPay </button> </div>
5. Live Demo
Click the button below to test a live redirect using demo data:
Rich Dad Poor Dad
Price: Rs. 1006. Notes
- Script must be included once per page.
- `uid` and `email` should match your registered AgentiaPay account.
- You can style the button using your own CSS.
- If you know coding, store values like
title
,price
, anduid
in variables to make it dynamic. - If you don’t know coding, simply follow the instructions and copy-paste the code.
- Your unique Seller UID will be sent to your email right after applying.
- For any help or queries, contact us at [email protected].