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 13:32]
tem [Timeout Auto-Reversal]
developer:timeouts [2015/01/26 13:53] (current)
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 46: Line 47:
 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. 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.1422307932.txt.gz · Last modified: 2015/01/26 13:32 by tem

Page Tools