Quick Snapshot of Web-Redirect

Here is a quick run through of how Web-Redirect works.

 

 

  • Call this to start the session (change REQUESTID each time):

    https://svra.interpaypos.com:1443/TERMID=TEST1234&TYPE=W&PASS=ep6kILE&ACTION=StartSession&REQUESTID=12345678&AMT=125.25&CUSTEMAIL=test@example.com

    And it will return this:

    TEXT=SUCCESS&CODE=0000&SECUREID=4s1py8vuhrvk6a1xge3r&URL=https://payment.interpaypos.com/api/HOSTPYMT/pay/?SecureID=4s1py8vuhrvk6a1xge3r&DATE=2021-0929&TIME=16:27:11&DUR=0.165

 

 

 

  • Paste the URL VALUE into browser to get the payment page that the user would see:

    https://payment.interpaypos.com/api/HOSTPYMT/pay/?SecureID=4s1py8vuhrvk6a1xge3r

     

  • When approved the payment page will redirect to:

    https://return.testexample.ca/?SecureID=4s1py8vuhrvk6a1xge3r&Status=5000

    Note: You can change the highlighted part of the URL by passing RETURNURL=<your URL> in StartSession but only on the test environment 

  • When you receive the callback, call GETRESULT to get the result of the transaction:
    (*ACK=Y tells it to complete the transaction as well)

    https://svra.interpaypos.com:1443/TERMID=TEST1234&TYPE=W&PASS=ep6kILE&ACTION=GetResult&SECUREID=4s1py8vuhrvk6a1xge3r&ACK=Y   

     

    This is what is returned:

    TEXT=APPROVED&CODE=0000&SECUREID=4s1py8vuhrvk6a1xge3r&CARDTYPE=M&AMT=125.25&REQUESTID=12345678&REFNUM=2725955812345678&AUTH=T63237&TOKEN=5165BBSPWXY36228&ACK=Y&DATE=2021-09-29&TIME=16:34:06&DUR=0.161

    Note: The ACK=Y tells you that the transaction has been captured and will be deposited. If somehow the browser does not make it back to your site and there is no GetResult called then the transaction will not be deposited and the cardholder is not charged.