Standard Integration
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 success_url
Follow the steps below to integrate VoguePay Standard
Standard API
STEP 1 - Collect payment details, Customer details and Pass required query parameters
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:
Parameter
Required
Description
p
Yes
Required for payment link generation. Value must be 'linkToken'. i.e ?p=linkToken
v_merchant_id
Yes
Merchant's ID
merchant_ref
No
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.
memo
Yes
Transaction Memo
cur
Yes
Currency code. e.g NGN
developer_code
No
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.
total
Yes
Total Cost
Yes
Merchant's Email Address
notify_url
Yes
Link to Send Transaction ID to. Same as Webhook URL.
success_url
Yes
Link to redirect users to if payment is successful
fail_url
Yes
Link to redirect users to if payment is fails.
Step 2 - Initiate payment
After collecting payment details and filling required parameters, initiate the payment by calling our API with the collected payment details, see example below.
Method: POST Endpoint: https://pay.voguepay.com
Query Parameter for Request Above
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.
Step 3 - Get Transaction ID
- 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:
Call your specified
notify_url
and post the transaction ID to you.
2. Send an email to you and your customer on the successful payment.
Step 4 - Verifying Payment
When the transaction is completed, we send the transaction ID to your notify_url
link 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.
Confirmation API
Query Parameter
Required
Description
v_transaction_id
Yes
Transaction ID of transaction to be queried
type
Yes
Format for the expected data. e.g xml, json. Defaults type is xml
v_merchant_id
Yes
Merchant ID
Method: GET Endpoint: https://pay.voguepay.com
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:
JSON type
XML type
Last updated