Our API supports both synchronous and asynchronous methods for processing transactions, although it's important to note that not all endpoints support both options. Some endpoints may be exclusively synchronous, while others are strictly asynchronous, and a few offer the flexibility to choose between the two.By adopting this approach, you can optimize the performance and reliability of your transactions while providing a better user experience for your customers.
By leveraging the webhook feature, all transactions can be made asynchronous. With this option, a transaction is created on our side, and the client immediately receives a basic HTTP response (if all validations are successful) with essential transaction information.Once the transaction is confirmed, a webhook call is triggered to the specified URL, providing the transaction's outcome details.We strongly recommend utilizing this architecture because response times can be influenced by factors beyond our control. The request timeout when communicating with our system is set at 60 seconds, which may result in erroneous or incomplete responses.Advantages of Using Webhooks#
Enhanced User Experience: By processing transactions asynchronously through webhooks, users receive immediate feedback, allowing for a more responsive and seamless experience.
Reduced Timeout Issues: Since the API request timeout is set at 60 seconds, asynchronous processing helps prevent timeout-related problems, ensuring reliable and complete transaction processing.
Improved Scalability: Webhook-based asynchronous processing can efficiently handle high volumes of transactions, making it suitable for scalable applications.
To implement webhook integration, specify the webhook URL in your API request using the useWebhook and webhookUrl parameters, and our system will automatically trigger a callback to that URL once the transaction is confirmed. Ensure that your server can handle incoming webhook requests and process them accordingly.