Your Cart
Loading

IntelliCore Pay Router Kit — which payment rail for this transaction (CLI + tests)

On Sale
$39.00
$39.00
Added to cart

One function that decides which payment rail a transaction should use: local rails for KRW, merchant-of-record rails for global cards and subscriptions, invoice rails for large B2B deals. It returns the fee estimate for each candidate and the reason every other rail was rejected.


WHAT YOU GET (ZIP, 30 KB)

cli.mjs — node cli.mjs route --region=kr --currency=KRW --group=b2c_digital --amount=29000 prints the primary rail, fallback order, per-rail fees and every rejection reason.

commerce/payment-router/lib/ — the rails and rules as data: fees, regions, currencies, product groups, MoR AUP exclusions, subscription and tax-invoice support.

test/ — 11 tests covering a Korean one-off sale, an L3 B2B service that must use an invoice rail, and a global subscription.

samples/route-kr.json — a real decision: 29,000 KRW digital sale -> tosspay_direct (live), fallbacks payapp -> kakaopay_direct, Payhip/Polar/Paddle rejected for currency_unsupported.

You will get a ZIP (30KB) file