Skip to content

Integration and Testing

1. Results Simulation

To handle different payment outcomes, the PayerMax Payment API provides a function that simulates different payment statuses based on the transaction amount. The specific rules are as follows:

  • Failed: You can set a fixed amount (in local currency): 110 or 11,000;

  • Pending: You can set a fixed amount (in local currency): 100 or 10,000;

  • Successful: You can set a fixed amount (in local currency): Other amounts.

Special Reminder:

  1. If your transaction amount cannot be in your local currency and you still want to simulate a successful or failed transaction, please fill in the remark field: remark=SUCCESS simulates a successful transaction; remark=FAILED simulates a failed transaction; and remark=BOUNCEBACK simulates a bounced transaction.
    If both the remark and the transaction amount meet the simulation conditions, the remark will prevail. For example: remark=SUCCESS, transaction amount=811, the result will be successful.
  2. If you are testing a Fawry withdrawal in Egypt and have sent a notifyEmail when placing an order, and would like to receive a withdrawal code via email, please refer to the local currency amount in the payment section above to place an order.

2. Test Cases

After completing the product capability access, in order to help merchants verify the Disbursement of collection product functions and understand expected behaviors of each API, PayMax provides developers with complete test cases. You can download on demand according to the real integration: API Single Disbursement Test Cases.

Released under the MIT License.