VPAY-Documentation
V-Pay Developer Documentation
Getting Started with V-Pay
V-Pay enables you to easily accept online payments. The API is open to merchants licensed to operate in Rwanda. This documentation outlines different API end points and required parameters to make API calls. Visit https://vonsung.rw for more details.
- Send a request to pay: This API enables you to send a request to pay to a mobile money subscriber. Our servers communicate directly to MTN Mobile Money and other PSP to process your payment request.
- Check transaction status: Once the payment is completed, we retern a JSON response containing the transaction STATUS. However, if you want to check the status of your transaction, you may do so by a single API call
How to get merchant account
Step 1: Send an application documents to info@vonsung.co.rw and we will create a merchant account for you. Application documents include a commitment letter, business incorporation certificate, contact details of the company and representative, and ID copy of company representative.
Step 2: Once the merchant account is created, login to your merchant portal and generate apiKey and apiUser
Step 3: Explore our API documentation and start testing
Step 4: If you are done, switch to LIVE mode, and update test credentials with LIVE credentials
ℹ️ Resources
Note:
If you are using Postman to test the integration, remember to include the following in your request headers:
POST: sendRequestToPay
You should always pass apiUser and apiKey as header parameters whenever you attempt to make an API call. The body barameters are passed as JSON.
To get your apiUser and apiKey, login to your merchant dashboard and go to API section, then copy your API user and API key.
Definition of body parameters:
payer_phone: also known as MSISDN is phone number where the request to pay will be sent.external_id: this is the transaction ID generated from your end (your integration platform). It is mainly used for the purpose of tracking the transaction status.payer_name: the name of payer being charged for a transaction.amount: integer value equavalent to the amount being charged (transaction amount).payer_email: the email of payer being charged for a transaction.payee_message: the payee note. Example: Purchase from Smarthiresend_receipt: boolean value (trueif you want the payer to receive V-Pay receipt,falseelsewhere)
GETgetStatusByTransactionId
This request enables you to check the status of a transaction placed with V-Pay using the transaction ID (assigned by V-Pay).
GETgetStatusByExternalTransactionId
Alternatively, you can check the transaction status using the external transaction ID which you passed as external_id when sending a request to pay.