Quickly embed VoguePay in your website using our Inline JavaScript integration.
Receive payment with our inline script. To initialize the transaction, you'll need to include the VoguePay inline script anywhere on your page and pass the required information such as email, amount, transaction reference, etc. Here is the full list of parameters you can pass.
Parameter
Required
Description
v_merchant_id
Yes
Merchant ID
total
Yes
Total Amount to be paid
notify_url
Yes
Link to Send Transaction status/details to
cur
Yes
Currency code. e.g NGN
merchant_ref
No
Merchant Reference or Transaction Reference. Can be any value provided by merchant.
memo
Yes
Transaction Memo
developer_code
No
A code unique given to every developer.
items
No
An object containing all items to be paid for
customer
Yes
An Object containing customer's details.
closed
No
Function that runs when payment window is closed without completing payment.
success
No
Function that runs when payment is successful.
failed
No
Function that runs when payment is fails
HTML:
<h3>Inline Payment Demo</h3>
<button type="button" onclick="pay('shirt',500)"> Pay for shirt </button>
<button type="button" onclick="pay('shoe',10000)"> Pay for shoe </button>
<script src="https://pay.voguepay.com/js/voguepay.js"></script>