cURL
curl --request POST \ --url https://sandbox-api.payfonte.com/payments/v1/payments/direct-charge \ --header 'Content-Type: application/json' \ --header 'client-id: <api-key>' \ --header 'client-secret: <api-key>' \ --data '{ "provider": "airtel-smartcash-ng", "amount": 100000, "reference": "<string>", "customerInput": { "phoneNumber": "2347012345678" }, "webhook": "https://example.com/webhook" }'
{ "data": { "reference": "<string>", "status": "<string>", "sessionId": "<string>", "amount": 100000 } }
Direct Charge the Customer via API
Request Submitted Successfully
The response is of type object.
object