Checking Payment Status
Checking the Status of a Payment
Once a payment has been initiated using Web Checkout or Direct API, you can use this endpoint to retrieve its final status. This is useful when confirming a transaction on your system after the user has returned to your site or if you missed a webhook notification.
For a complete understanding of our payment system, we recommend reviewing our System Overview first.
End point:
https://gateway.yallapaysudan.com/api/v1/gateway/getPaymentStatus
HTTP Method:
POST
Request Parameters
Parameter | Description | Required/Optional |
---|---|---|
clientReferenceId | A unique identifier you originally passed when creating the payment | Required |
transactionDate | The date the transaction was initiated in the format YYYY-MM-DD | Required |
Note: The clientReferenceId
should match the one you used when creating the payment through Web Checkout or Direct API.
Example Request:
Header: { "Authorization": "Bearer <Authorization-Token>" } Body: { "clientReferenceId": "7ff632fc-3e5b-4be5-b2a0-dbe2600e7789", "transactionDate": "2025-12-05" }
Note: You can find your authorization token in the Developers section of your dashboard.
Example Successful Response:
{ "clientReferenceId": "7ff632fc-3e5b-4be5-b2a0-dbe2600e7789", "paymentReferenceId": "01JXF7HSW41P9FCG9YN6Z094XR", "status": "SUCCESSFUL", "amount": 150, "paymentDate": "2025-12-05", "paymentTime": "13:15:02" }
Status Values
The status
field in the response can have one of the following values:
Status | Description |
---|---|
SUCCESSFUL | The payment was completed successfully |
FAILED | The payment attempt failed (e.g., insufficient funds, technical error) |
CANCELLED | The payment was canceled by the user |
REVOKED | The payment authorization was revoked by the customer or bank |
EXPIRED | The payment session expired before completion |
You can also view these statuses in the Transactions tab of your dashboard for a visual overview of all your payment activities.
Best Practices
For more advanced reconciliation workflows, consider combining this API with our Webhooks to ensure payment status is always synced with your system. This approach provides real-time updates and reduces the need for manual status checking.
Related Documentation
System Overview
Understand YallaPay's payment system architecture and how different components interact. Learn about our payment flow, security measures, and integration options.
Web Checkout
Implement our hosted checkout solution for websites and mobile apps. Learn how to generate payment links, handle redirects, and process transactions using our web checkout API.
Direct API
Implement direct API integration for OTP payment methods. Learn the three-step process of obtaining payment intent, requesting OTP, and confirming payment with complete code examples.