Inline Payment

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>

JAVASCRIPT:

In the code snippets above, notice how:

  1. The Voguepay inline javascript is included using a script tag. This is how you import Voguepay into your code.

  2. The Pay for shirt and Pay for shoe buttons has been tied to an onClick function called pay. This is the action that causes the Voguepay popup to load.

MORE SAMPLES

This sample loads VoguePay using javascript Onclick function

HTML:

JAVASCRIPT:

This sample loads VoguePay using function call.

HTML:

JAVASCRIPT:

The function "payWithVoguePay" can be any name.

Last updated

Was this helpful?