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:
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
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