Pay with a new card
The gateway doesn’t approve cards: the shopper’s bank does. The gateway records the payment, checks its risk, and reaches the bank through an acquirer and the card network.
- The shopper types her card into fields the gateway serves on the checkout page; the card service returns a card token.
- The merchant’s server creates the payment with the token and the amount, sending its key.
- The payment service saves the payment and the key, then runs the risk check.
- An acquirer connector sends the authorization; the acquirer passes it over the network to the shopper’s bank, which approves and holds the money.
- The payment becomes authorized, and the merchant gets the answer.
Diagram as text
Components: Shopper’s browser (Client); Card service (Service); Risk service (Service); Card network → shopper’s bank (External API); Merchant server (Client); Payments API (API gateway); Payment service (Service); Acquirer connector (Service); Acquirer (External API); Payments DB (SQL DB). Connections: Shopper’s browser → Card service (card details → token); Shopper’s browser → Merchant server (token and order); Merchant server → Payments API (create the payment); Payments API → Payment service; Payment service → Payments DB (record); Payment service → Risk service (risk check); Payment service → Acquirer connector (authorize); Acquirer connector → Acquirer (authorization); Acquirer → Card network → shopper’s bank (approve and hold?).
Read:Learn: High-level architecture
Check yourself
Who decides whether the card is approved?
Show answerHide answer
The shopper’s bank, the issuer. The gateway carries the request to it through an acquirer and the card network, and records the answer.