Skip to main content
Blink lets merchants accept payments through a hosted checkout flow. Your app opens a secure modal iframe powered by Blink, and your users complete the payment without leaving your site. There is nothing to PCI-scope, no wallet UI to build, and no on-chain logic to manage.

How it works

  1. Your frontend calls the Checkout SDK with a deposit amount and destination.
  2. The SDK calls your signer endpoint — a server-side route you build that signs each payment request with your ECDSA private key.
  3. The SDK opens a modal iframe containing Blink’s hosted payment UI.
  4. The user authenticates, connects a wallet, and completes the payment inside the iframe.
  5. On completion, the SDK returns a DepositResult with the transfer ID and status.

What you need to build

ComponentWhereWhat
Signer endpointYour serverAn HTTP endpoint that validates payment requests, signs them with your private key, and returns a SignerResponse.
Checkout integrationYour frontendA few lines of code using the @swype-org/checkout SDK (vanilla JS or React) to trigger the payment flow.
Blink handles everything else: user authentication, wallet connection, on-chain transfers, and cross-chain bridging.

Key concepts

TermDefinition
Merchant SignerA server-side endpoint you build that creates and cryptographically signs payment requests. The private key never leaves your server.
PayloadA base64url-encoded JSON string containing payment parameters (amount, chain, address, token, idempotency key, expiration).
SignatureAn ECDSA P-256 SHA-256 signature over the payload string, base64url-encoded. Blink verifies this against your registered public key.
Idempotency KeyA UUID v4 generated per payment request. Prevents duplicate transfers if the same request is submitted twice.
Hosted FlowBlink’s payment UI that opens in a modal iframe. It handles user authentication, wallet connection, and the actual transfer.
Checkout SDKThe client-side library (@swype-org/checkout) that orchestrates the signer call and hosted flow lifecycle.

Next steps

Quickstart

Get a working integration in 5 minutes.

Architecture

Understand the full payment flow in detail.