This shows you how to accept payments using the standard integration flow
Accept payment quickly and securely using the standard method by calling our API. When you call the API with the required parameters, we will return a response with a payment link. Do a redirect to the link and a secure checkout modal will be loaded for your customer to enter their payment details and complete the payment.
When the transaction is completed and your customer closes the payment modal, if the transaction was successful, we would call your
Follow the steps below to integrate VoguePay Standard
Collect the customer's email address, total amount to be paid and currency if they are not paying in NGN.
When you've collected the necessary details, add it to your request object and call our standard payment API.
VoguePay Standard Query Parameters
Here are the standard request parameters and descriptions:
Required for payment link generation. Value must be 'linkToken'. i.e ?p=linkToken
Merchant Reference or Transaction Reference. Can be any value provided by merchant. Merchant value will be returned with the confirmation results from the confirmation API. VoguePay doesn't need this value, it is used by the merchant to store any data to be retrieved later with the transaction details.
Currency code. e.g NGN
A code unique given to every developer. Using this code earns the developer a commission on every successful transaction made through any selected integration methods.
Merchant's Email Address
Link to Send Transaction ID to. Same as Webhook URL.
Link to redirect users to if payment is successful
Link to redirect users to if payment is fails.
After collecting payment details and filling required parameters, initiate the payment by calling our API with the collected payment details, see example below.
memo=Payment for laptop&total=1000&merchant_ref=ref123&
Query Parameter for Request Above
memo=Payment for laptop&total=1000&
When you send this request to our API, we will return a payment link in the response. Pass this link back to your customer for them to complete the transaction. The link will load up our checkout modal in accordance with the configurations you defined in your initial payment call.
VoguePay Standard Sample Response
Here's a sample response object containing the payment link returned:
Now when you pass the returned link to the user, they will be provided with our payment modal to complete the payment.
- What happens when the user completes the transaction on the page?
When the user enters their payment details, VoguePay would validate then charge the card. Once the charge is completed we would:
- 1.Call your specified
notify_urland post the transaction ID to you.
2. Send an email to you and your customer on the successful payment.
When the transaction is completed, we send the transaction ID to your
notify_urllink or webhook (If one is set). You can use the transaction ID sent to verify the payment or perform other action by sending a GET request to our Confirmation API. See format and required query parameters below.
Transaction ID of transaction to be queried
Format for the expected data. e.g xml, json. Defaults type is xml
Query Parameter for Request Above
When you send this request to our API, we will return a json or xml response of the transaction queried and you can perform an action afterwards e.g save to some details to database.
Confirmation API Sample Response
Here's a sample response object containing details about the transaction ID queried:
"buyer_email": "[email protected]",
<?xml version="1.0" encoding="UTF-8"?>