4.3 KiB
4.3 KiB
Aurora Gateway – Simulated Card Payouts
Aurora is a dev/test-only card payout gateway with the same gRPC contract as mntx, but it never sends real funds.
Runtime entry points
- gRPC:
MntxGatewayService.CreateCardPayout,CreateCardTokenPayout,CreateCardToken,GetCardPayoutStatus,ListGatewayInstances - Callback HTTP server (optional):
:8084/aurora/callback - Metrics: Prometheus on
:9405/metrics
Behavior
- Card payouts are resolved locally by PAN scenario mapping.
- Token payouts resolve the scenario from the tokenized PAN (or fallback to masked PAN last4).
- No outbound payout/tokenization HTTP calls are made.
Built-in test cards
- Every scenario has multiple generated PANs (8 per case), all Luhn-valid.
- PANs are generated from scenario prefixes in
scenario_simulator.goviageneratePANSeriesWithLuhn. - Scenario prefixes:
22000011: approved instantly (success, code00)22000022: pending issuer review (waiting, codeP01)22000033: insufficient funds (failed, code51)22000044: issuer unavailable retryable (failed, code10101)22000055: stolen card (failed, code43)22000066: do not honor (failed, code05)22000077: expired card (failed, code54)22000088: provider timeout transport error22000098: provider unreachable transport error22000097: provider maintenance (failed, code91)22000096: provider system malfunction (failed, code96)
- Any other valid PAN defaults to queued processing (
waiting, codeP00).
Auxiliary PAN Table (Generated, Luhn-valid)
| Scenario | Prefix | PANs |
|---|---|---|
| approved_instant | 22000011 |
22000011000000012200001100000019220000110000002722000011000000352200001100000043220000110000005022000011000000682200001100000076 |
| pending_issuer_review | 22000022 |
22000022000000082200002200000016220000220000002422000022000000322200002200000040220000220000005722000022000000652200002200000073 |
| insufficient_funds | 22000033 |
22000033000000052200003300000013220000330000002122000033000000392200003300000047220000330000005422000033000000622200003300000070 |
| issuer_unavailable_retryable | 22000044 |
22000044000000022200004400000010220000440000002822000044000000362200004400000044220000440000005122000044000000692200004400000077 |
| stolen_card | 22000055 |
22000055000000082200005500000016220000550000002422000055000000322200005500000040220000550000005722000055000000652200005500000073 |
| do_not_honor | 22000066 |
22000066000000052200006600000013220000660000002122000066000000392200006600000047220000660000005422000066000000622200006600000070 |
| expired_card | 22000077 |
22000077000000022200007700000010220000770000002822000077000000362200007700000044220000770000005122000077000000692200007700000077 |
| provider_timeout_transport | 22000088 |
22000088000000092200008800000017220000880000002522000088000000332200008800000041220000880000005822000088000000662200008800000074 |
| provider_unreachable_transport | 22000098 |
22000098000000072200009800000015220000980000002322000098000000312200009800000049220000980000005622000098000000642200009800000072 |
| provider_maintenance | 22000097 |
22000097000000082200009700000016220000970000002422000097000000322200009700000040220000970000005722000097000000652200009700000073 |
| provider_system_malfunction | 22000096 |
22000096000000092200009600000017220000960000002522000096000000332200009600000041220000960000005822000096000000662200009600000074 |
| default_processing (example) | 22000999 |
2200099900000007 |
Notes
- PAN is masked in logs.
- Provider settings should be configured under
aurora:(legacymcards:key is still accepted for backward compatibility). gateway.iddefaults tomcardsto preserve orchestrator compatibility.