Testing

Integration Testing Stage

To fully verify the integration, it is necessary to perform a test payment and go through the entire transaction lifecycle — from creation to receiving the final status.

  1. Creating a Test Payment

  • Generate a payment link using the Initiate Payment method, following the documentation.

  • The test amount should be between 1 and 5 EUR.

  1. Selecting a Test Bank and Scenario

The list of banks includes special test options. Each option simulates a specific final transaction status.

When choosing a bank, the expected result returned by the system after completing the payment is indicated in advance:

  • All extra fields

  • Canceled

  • Not full Completed - ACCEPTED_SETTLEMENT_IN_PROCESS

  • Pending - IN_PROGRESS

  • Some extra fields

This allows you to deliberately test the handling of each possible payment status within your system.

chevron-rightExamplehashtag

  1. Status Handling and Business Logic Verification

    After completing the payment scenario, ensure that:

    • The order status in your system is updated correctly;

  1. Receiving and Confirming Webhook Notifications

    As the payment status changes, you will receive webhook notifications. You must:

    • Accept the request on your server;

    • Validate it;

    • Return an HTTP status 200;

    • Include the string OK in the response body.

Receiving and Processing Webhooks

Thus, the testing stage should confirm the correctness of:

  • Payment creation,

  • Handling of all possible statuses,

  • Receipt and confirmation of webhook notifications,

Last updated