Paytia API exception handling
Paytia API Exception Handling The Paytia API services provide status update webhooks to track processes and status changes. These updates include standard API posts as well as exception handling for telephony-related processes. Below are details ...
Paytia API Exception Handling
The Paytia API services provide status update webhooks to track processes and status changes. These updates include standard API posts as well as exception handling for telephony-related processes. Below are details about specific scenarios and their corresponding webhooks:
Confirming the Payment Amount
- Customer Confirms Amount is Correct
- Webhook Sent:
payment_stage=amount_verify&reference_id=reference_id_is_number_106&amount_verify=accepted
- Customer Rejects Amount
- Webhook Sent:
success=0&reference_id=reference_id_is_number_113
Call Leg Drops
Customer Ends the Call
- Webhook Sent:
success=0&reference_id=ref_new34_f1Ta11234521211&callhangup=customer - Explanation: This indicates the customer has disconnected the call.
Agent Ends the Call
- Webhook Sent:
success=0&reference_id=ref_new34_f1Ta11234521211121&callhangup=merchant - Explanation: This indicates the agent has disconnected the call.
Payment Session Resets
Customer Presses
*to Abort- Webhook Sent:
success=0&reference_id=ref_new34_f1Ta112345212118&custabort=1 - Explanation: The customer reset the payment session and is back in communication with the agent.
Agent Presses
*to Abort- Webhook Sent:
success=0&reference_id=ref_new34_f1Ta112345212118&agentabort=1 - Explanation: The agent reset the payment session and is back in communication with the customer.
Note
In scenarios where the session resets (via * key) or a call leg drops, the payment request should be considered as failed. A new payment session must be initiated with a fresh uniqueID.
Agent/User Licences and Assigned Payment Types
If an API request includes an agentid that lacks the necessary rights for the specified transaction_flag, Paytia will return an error in the statusDescription field.
Sample API Error Response
{
"httpStatus": false,
"reference_id": "reference_id_is_number_144",
"status": {
"statusCode": 400,
"statusDescription": "The agent you are using doesn't have the right to use transaction type 3."
}
}
- Impact: The agent will not be able to proceed with the payment if rights are not assigned.
- Resolution: User rights can be managed via the Paytia Administration Portal under
Administer Users > Users. Click theEditbutton to assign the necessary rights.
Managing Licences and Rights
- Go to Administer Users > Users.
- Select the user from the list and click the Edit button.
- Update the following settings:
- Menu Rights: Control which menus the user can access.
- Licence Rights: Assign payment types and permissions based on active licences.
For any additional configurations or support, contact your Paytia account administrator.
More in API
API details
What Can I See in the API Details View? The API Details View provides an in-depth look at the internal API exchanges between Paytia's telephony and API services. This feature is designed for troubleshooting and offers transparency into the data ...
CDR Details Webhooks: Push Data for Telephony Events
CDR Details Webhooks: Push Data for Telephony Events Paytia supports webhook push messages, enabling you to transmit real-time call information to a predefined URL. This functionality allows seamless programmatic decision-making within third-party ...
How do I add an enhanced API key security on Paytia?
How to Add Enhanced API Key Security on Paytia Adding enhanced security to your API integration ensures a more secure and streamlined experience when connecting to the Paytia platform. Follow these instructions to generate an API key, activate ...
How do I use Paytia Webhooks?
Configuring Webhooks in the Paytia Merchant Administrative Portal Webhooks enable the Paytia platform to send notifications and data to third-party service providers. These notifications are essential for integrating the Paytia Agent Capture Assist ...
How to Add an API Key on Paytia
How to Add an API Key on Paytia Adding an API key to your Paytia account is essential for integrating external applications or services with your merchant account on the Paytia platform. Follow the steps below to generate and manage an API key. Steps ...
Integrating Paytia: A Comprehensive Guide to the Connection Points you must consider
Paytia provides secure payment solutions that integrate seamlessly with host systems, telephony, and payment gateways. This guide outlines the primary connection points and how businesses can utilise Paytia for a streamlined payment processing ...
Still need help?
Our support team is here to help. Submit a ticket and we'll get back to you within one business day.