Skip to content

Try it end to end

Before you connect your own system, the console can show you a whole flow: a payment through an acquirer gateway, a switch routing it by card number, and a simulated issuer answering, then the issuer failing and a scenario testing the switch. It takes a few minutes, from Try it end to end in the console’s Help menu.

The gateway and switch are our reference systems: small, readable programs that stand in for the system you’re building (see reference/README.md). Every install runs them, idle until used. Their ports answer on the Platform’s own machine only.

The page checks that the gateway answers and that the switch answers an echo through it. If either doesn’t, your install may leave them out; the operations guide says how to bring them back.

The switch sends Visa cards to the simulated host on port 8583 and Mastercard cards to the one on 8585. Create the sample issuers makes them where those ports are free:

  • Issuer approves, declines amounts over 500.00 with 51, and never answers requests from terminal TIMEOUT1;
  • Mainframe issuer speaks EBCDIC with a 4-byte length header, as many mainframe hosts do.

A port that already has a host is left alone; the switch sends there all the same. It also saves the Reference switch scenario. Creating them needs the editor role.

Choose a published test card, an amount and a type, and pay through the gateway. The answer shows the result and response code, the STAN and RRN, and the authorization code. Try:

  • 10.00 on the Visa card: approved;
  • 900.00: the issuer declines with 51, and the switch relays it;
  • the American Express card: the switch has no route for it and declines with 15.

In the message log, what reached the issuers came from the switch: its own STANs, and its institution ID, 999001, in field 33.

Pay 10.00 with the issuer timing out sends from terminal TIMEOUT1, which the sample Issuer never answers. After 3 seconds the switch stands in: it approves up to its floor limit of 50.00 on the issuer’s behalf (91 above it) and sends the issuer an advice (0120) of what it approved, which the issuer answers.

The Reference switch scenario reaches the switch by address (reference-switch:8600), exactly as a scenario reaches your own system: an echo, a relayed approval and decline, and a card without a route. Run it from the page, then read it to see how it’s written.

Pointing the same kind of scenario at your system is the next step: the other walkthroughs show how, and iso8583sim-run.py runs scenario files from CI.

On the public demo, payments through the gateway are limited to a few a minute for each visitor, and the sample issuers are already there.