Tutorial: testing an issuer
You run or build an issuer host: the system that holds the accounts and answers authorizations. You need to send it the traffic a network would, read what it answers, and keep doing that on every build. The Platform is the acquirer and network side here: its runner sends your issuer requests from scenario files and checks the answers, its HSM simulator stands in for the network’s HSM, and its simulated network can sit between the two when you want routing, stand-in or advices in the picture.
This tutorial takes about twenty minutes. On the public demo, the simulated host named Issuer stands in for yours.
1. Point a scenario at your issuer
Section titled “1. Point a scenario at your issuer”A scenario file names its target and its steps. Copy examples/tutorials/issuer-tester.yaml from the Platform’s repository and change the target to your issuer’s address:
target: host: 10.0.0.5 # your issuer port: 8583 timeout_ms: 3000The file sends an authorization and expects approval within a second, with an authorization code and the amount and STAN echoed; sends one over the limit and expects a 51 with no code; then reverses the first, quoting the original in field 90, and expects the reversal approved. Each expect is one line of the contract your issuer keeps: the response code, which fields must be present or absent, which must echo the request, and how long it may take. The assertions walkthrough lists everything an expectation can say, down to sub-elements by path.
Under Scenarios, New scenario, paste the file. The editor validates it as you type and lists its steps. Create scenario, then Run now.
2. Read the result
Section titled “2. Read the result”The run’s page shows each step with what was sent and what came back, field by field, the fields the expectation failed on marked. A step that timed out says so, with the request it sent. Card numbers are masked everywhere; a real one is refused before anything is sent, by the test-data guard.
When a step fails on your issuer, the message log under Messages shows the exchange as the network saw it, and the workbench decodes any message you paste.
3. Add the HSM to the picture
Section titled “3. Add the HSM to the picture”An issuer that checks PINs or card verification values needs a network HSM with the same keys. The HSM simulator is one: a payShield-compatible command port, keys you import or generate, and hsm: steps in a scenario that make a PIN block or a CVV with those keys before the authorization that carries them. The HSM walkthrough and the stateful issuer walkthrough’s PIN section take it from the first key to a verified PIN.
4. Put a network between
Section titled “4. Put a network between”Your issuer rarely sees acquirers directly. Tick Network node on a simulated host and give your issuer a card range: requests the runner sends to the node are routed to your issuer in the format its link speaks, the node stands in when your issuer doesn’t answer, and the advices it owes arrive when your issuer is back. The networks walkthrough covers routes, stand-in and store and forward.
5. Keep it running
Section titled “5. Keep it running”Save the scenario, add it to a suite, and give the suite a schedule: the suites walkthrough and the schedules walkthrough. Then run the same file from your pipeline on every build with the CI client, as the CI tutorial does, and keep a signed evidence pack of the runs that matter (the evidence walkthrough).
Where to look next
Section titled “Where to look next”Load against your issuer, from a few requests a second to thousands, is the load testing walkthrough. Chip cards, with cryptograms your issuer must verify, are in the HSM walkthrough. Faults on the link to your issuer (latency, loss, a flapping connection) are the chaos experiments walkthrough.