Subscription Module Test
Function Types
3 types of functions depend on what is passed by the CardHolder:
- Alternated
- Counter
- Special Step
It is ALWAYS necessary to have the error in the cardholder for these functions to work. It is an Exxxx regex (4 numbers) where the 4 numbers correspond to the Revup error code. ALL cardholder functions should be in capital letters.
The process only occurs from the initial transaction, which will always return as APPROVED. The only card for this module contains the number 4000056655665556
Alternated
There will be a counter in the initial transaction where each even number will be an APPROVED and an odd number will be a FAILED with the error reported. When the initial transaction is generated, the counter is set to 0, so the first recurring transaction will be APPROVED.
Example
ALT E0900
→ The first recurring transaction will be APPROVED, the second FAILED with error 0900
Counter
It is a counter that waits for a Cxx Eyyyy
regex in the card-holder where C is for counter and the 2 numbers next to it are to determine how many times APPROVED is returned in a row. After the counter number has been exceeded, it returns FAILED with the error number reported in Eyyyy.
Example
C03 E0200
→ Returns 3 APPROVED in a row and on the fourth time onwards a FAILED with error 0200
C01 E0900
→ Returns 1 APPROVED and in the second onwards a FAILED with error 0900
Special Steps
A sequence of S and F is expected with which it will be determined from the initial one.
Example
SFSSFF E0900
→ Returns in order APPROVED, FAILED, APPROVED, APPROVED, FAILED, FAILED.
The errors are 0900 for each FAILED.
FFSFSFF E0800
→ Returns in order FAILED, FAILED, APPROVED, FAILED, APPROVED, FAILED, FAILED.
The errors are 0800 for each FAILED.