This project demonstrates how to purchase airtime using the IntaSend API.
- IntaSend Account: To make the code work, you need an active IntaSend account.
- API Credentials: Obtain your API credentials from the IntaSend dashboard after creating an account.
-
Get your credentials:
- Go to the IntaSend dashboard and retrieve your
consumerKey
andconsumerSecret
.
- Go to the IntaSend dashboard and retrieve your
-
Add your credentials to the code: Replace the placeholders with your actual credentials in the following variables:
$consumerKey = "xxxxxxxxxxxxxxxxxxxxxxx"; $consumerSecret = "xxxxxxxxxxxxxxxxxxxxxxxxx";
These credentials are required for the IntaSend API to function correctly.
If you don’t have an account, follow these steps to create one:
- Visit the IntaSend Website.
- Click on Sign Up.
- Fill out the required details and verify your email.
- Once registered, navigate to the API Keys section to get your credentials.
Once you have set up your credentials, you can run the code to purchase airtime through the IntaSend API.