VTU AFRICAVTUAfrica.com.ng

  • MAIN NAVIGATION
  • Introduction
  • Discounts & Prices
  • Balance Check
  • Airtime
    • Airtime VTU
    • Airtime Share
  • Data Bundle
    • Data (All Networks)
    • Smile Data
  • Cable TV Subcription
    • Cable TV Verification
    • Cable TV Subscription
  • Electricity bills
    • Meter Verification
    • Electricity Bills
  • Examination PINS
  • Bank Transfer
    • Verify Account Number
    • Send Money
  • Recharge Card PINS
  • Bet Wallet funding
  • Airtime2Cash Conversion
  • Bulk SMS
  • Transaction Status
    • Transaction Query
    • Resend Webhook
  • How To Videos
  • Back To Home Page
  • Home SOFTWARE RESELLER
  • My Account

    • Login
    • Register

Bet Account Funding API Integration

Bet Account Funding API Integration

This section contains your RESTful API for Bet Account Funding API integration.

 

Authentication

The VTU Africa API uses API Key for Authentication.

Please use your APIKEY for authentication



Verify Bet Account

userid Or Bet Account can be Validated or Verified with the endpoint below:

Base URL: https://vtuafrica.com.ng/portal/api/merchant-verify/

Parameters: as specified in the parameters below:

 

PARAMETERS Required/Optional TYPE DESCRIPTION
apikey R String The reseller gateway API key created at vtuafrica.com.ng
serviceName R String This is the Name of the service you are verifiying.
In this case it is: Betting
service R String Service as specified. These includes, sportybet, 1xbet, bet9ja, betking. See more below
userid R Number The userid Or Bet Account to be verified.

 

SAMPLE CODE


$host ="https://vtuafrica.com.ng/portal/api/merchant-verify/?apikey=1234&serviceName=Betting&service=bet9ja&userid=14446015";
//Initialize cURL.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$data = curl_exec($ch);

//Close the cURL handle.
curl_close($ch);

$response = json_decode($data);

 

EXPECTED RESPONSE

{"code":101,
"description":{"Status":"Completed","Customer":"UBI ENO","Service":"bet9ja","UserID":"14446015","message":"BETID Verified Successfully"} }




Bet Account Funding

Bet Account Funding services can be purchased with the endpoint below:


Live URL: https://vtuafrica.com.ng/portal/api/betpay

Sandbox: https://vtuafrica.com.ng/portal/api-test/betpay


Parameters: as specified in the parameters below:

 

PARAMETERS Required/Optional TYPE DESCRIPTION
apikey R String The USER API key created at https://vtuafrica.com.ng.
service R String The Service Code of the bet as specified. These include: bet9ja, betking, etc, See More Below
userid R Number The userid Or Bet Account to be Funded
amount R Number The amount you wish to Fund
ref R String This is a unique reference with which you can use to execute and query the transaction.
phone O Number The phone number of the user
webhookURL O string Your webhook URL. We send transaction status to it. If not provided, the webhook in your profile will be used. Please include http:// or https://

 

SAMPLE CODE

$sandbox = "https://vtuafrica.com.ng/portal/api-test/betpay/?apikey=1234&service=bet9ja&userid=1234&phone=0803992222&amount=100&ref=828432234";
$host = "https://vtuafrica.com.ng/portal/api/betpay/?apikey=1234&service=bet9ja&userid=12345&phone=0803992222&amount=100&ref=8284666332234";


//Initialize cURL.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $host);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

$data = curl_exec($ch);

//Close the cURL handle.
curl_close($ch);

$result = json_decode($data);

 

EXPECTED RESPONSE

{"code":101, 
"description":{"Status":"Completed","Service":"Bet 9ja Account Funding","Network":"bet9ja","UserID":"12345",
"Request_Amount":"500","Charge":"30","Amount_Charged":"530","Previous_Balance":"1000",
"Current_Balance":"470","ReferenceID":"884666332234","message":"Transaction Successful"}} 

Service Codes

OTHER SERVICES


CopyRight © 2016 - VTUAfrica.com.ng. All Rights Reserved
Site Designed by: EMMALEX ICT SOLUTIONS | Powered by RESELLER HOSTING