Initiate GHS mobile-money payment (payer-facing)
curl --request POST \
--url https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "0244000000"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phoneNumber: '0244000000'})
};
fetch('https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate"
payload = { "phoneNumber": "0244000000" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate"
payload := strings.NewReader("{\n \"phoneNumber\": \"0244000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phoneNumber: '0244000000'})
};
fetch('https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"status": "<string>",
"instruction": "<string>",
"amount": "<string>",
"fee": "<string>",
"currency": "<string>"
}
}Checkout
Initiate GHS mobile-money payment (payer-facing)
Public endpoint (no API key). Call after the payer enters their phone number and network. depositInstructionId comes from the depositInstructions[] entry with method = GHS_MOBILE_MONEY and requiresAdditionalInput = true returned by the createPaymentIntent GraphQL mutation. The payer then receives a PIN prompt on their phone.
POST
/
v1
/
checkout
/
mobile-money
/
{depositInstructionId}
/
initiate
Initiate GHS mobile-money payment (payer-facing)
curl --request POST \
--url https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate \
--header 'Content-Type: application/json' \
--data '
{
"phoneNumber": "0244000000"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phoneNumber: '0244000000'})
};
fetch('https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate"
payload = { "phoneNumber": "0244000000" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate"
payload := strings.NewReader("{\n \"phoneNumber\": \"0244000000\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phoneNumber: '0244000000'})
};
fetch('https://api.xentfi.com/v1/checkout/mobile-money/{depositInstructionId}/initiate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"status": "<string>",
"instruction": "<string>",
"amount": "<string>",
"fee": "<string>",
"currency": "<string>"
}
}
