Inline Payment

VoguePay inline payment script

Receive payment with our inline script. To initialize the transaction, you'll need to pass information such as email, first name, last name 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

In this, notice how:

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

  2. The amount here can be hardcoded if you want to charge a specific amount.

  3. 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.

HTML:

JAVASCRIPT:

MORE SAMPLES

This sample loads VoguePay using javascript Onclick function

HTML:

JAVASCRIPT:

This sample also loading VoguePay using function call.

HTML:

JAVASCRIPT:

The function "payWithVoguePay" can be any name.

Last updated

Was this helpful?