The public key can be gotten from the 'Settings' page on your Startbutton dashboard.
Post a request to the URL below, where the base URL is determined by the environment you are in.
BaseUrls
PROD : https://api.startbutton.tech
DEV/ Staging: https://api.startbutton.builditdigital.co
{
"phone": "+255121212121",
"email": "johndoe@startbutton.africa",
"amount": 12000,
"currency": "TZS"
}
{
"phone": "+255121212121",
"email": "johndoe@startbutton.africa",
"amount": 12000,
"currency": "TZS",
"reference": "765jhgfyt6"
}
{
"phone": "+255750000020",
"email": "johndoe@startbutton.africa",
"amount": 12000,
"currency": "TZS"
}
{
"phone": "+256101010111",
"email": "johndoe@startbutton.africa",
"amount": 120000,
"currency": "UGX"
}
{
"phone": "+256101010111",
"email": "johndoe@startbutton.africa",
"amount": 120000,
"currency": "UGX",
"reference": "jhgfdew4567"
}
{
"phone": "+256760000010",
"email": "johndoe@startbutton.africa",
"amount": 120000,
"currency": "UGX"
}
The amount should be in fractional units.
{
"success": true,
"message": "Payment initiated successfully!",
"data": {
"reference": "ffeaf8d13f71",
"nextStep": "PIN"
}
{
"success": true,
"message": "Payment initiated successfully!",
"data": {
"reference": "ccefb5efd193",
"nextStep": "PIN"
}
{
"success": false,
"message": "unknown provider"
}
The next step is always PIN for both TZS and UGX. Your users only need to enter their PIN on the prompt on their phone.