developer:timeouts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developer:timeouts [2015/01/26 12:32]
tem [Timeout Auto-Reversal]
developer:timeouts [2015/01/26 13:53]
tem [API Timeout Handling]
Line 3: Line 3:
  
  
-  * [[developer:​transactionapi|Transaction API]] parameter: "​UMtimeout"​  +  * [[developer:​transactionapi|Transaction API]] parameter: "​UMtimeout=15"  
-  * [[developer:​transactionapi|Transaction API]] and [[developer:​soap|Soap API]] HTTP Header: ​ "​ApiTimeout"​+  * [[developer:​transactionapi|Transaction API]] and [[developer:​soap|Soap API]] HTTP Header: ​ "​ApiTimeout: 15" 
 +  * Built-in support: ​ [[developer::​phplibrary|PHP Library]] ​ "​$tran->​timeout=15;​"
  
 ===== Background ===== ===== Background =====
Line 42: Line 43:
   - **Source key setting:​** ​ The merchant can log into their console and edit the settings of the source key. The API Timeout field contains the default timeout in seconds for all calls to this source key   - **Source key setting:​** ​ The merchant can log into their console and edit the settings of the source key. The API Timeout field contains the default timeout in seconds for all calls to this source key
  
-In the event that multiple of the above are set,   the API Parameter will override the HTTP header and the source key setting. ​  The HTTP header will override the source key setting.+In the event that multiple of the above are set,   the API Parameter will override the HTTP header and the source key setting. ​  The HTTP header will override the source key setting. ​ 
  
 +Please note that the timeout parameter does not affect how long the gateway will take to respond to your request. It only controls the maximum time an approval will be returned. ​  To ensure that the HTTP call to the gateway never exceeds a given amount of time, you will need to implement a client side timeout. ​ This is typically available in the development language or library being used.
 +
 +===== Testing =====
 +
 +The following special test cards can be used in the sandbox environment to simulate slow processing. ​ Each card has a predefined amount of time that it will take to process. ​ This simulates a slow platform response. ​
 +
 +==== Slow Processing Cards ====
 +^ Card Number ^ Expiration ^ Processing Time ^
 +| 4000000011112226 | 0919 | 5s |
 +| 4000000011112234 | 0919 | 15s |
 +| 4000000011112242 | 0919 | 30s |
 +| 4000000011112259 | 0919 | 45s |
 +| 4000000011112267 | 0919 | 60s |
developer/timeouts.txt · Last modified: 2015/01/26 13:53 by tem

Page Tools