AgentiaPay

Docs

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

ParameterTypeRequiredDescription
titlestringYesProduct name
pricenumberYesProduct price in PKR
quantitynumberYesHow many items being bought
uidstringYesYour AgentiaPay seller ID
weburlstringYesYour products page URL
emailstringYesYour 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. 100

6. Notes