Search for Resources and Solutions

the_incomplete_transaction - get the transaction's information

Any time when someone click on a payments gateway link to pay, Midrub will provide the transaction information. The transaction's information is temporary and if user will refresh the page, the page will not be available more. 

To get the transaction's data, you have to use the function the_incomplete_transaction inside the gateway's method pay(or controller). 

The function the_incomplete_transaction has 3 scopes:

  • saves the session in the database.
  • verifies if transaction is correct and returns it, otherwise returns false and transaction is not saved.
  • register the transaction's ID to be provided to the redirected page if exists.

The function the_incomplete_transaction receives only the data provided by data send with the function generate_incomplete_transaction 

Was this article helpful?