Skip to content

Payment Flows

Gatepay provides a secure, automated, and flexible payment gating system. This section explains the typical flow from user access to resource delivery, with integration tips for developers.

  • The user is prompted to pay using a supported wallet (e.g., MetaMask, WalletConnect).
  • Payment requirements are displayed in X402 format for compatibility and automation.
  • Gatepay monitors the blockchain for the payment transaction.
  • Once detected and confirmed, Gatepay updates the payment status.
  • Developers can poll the API or use webhooks for real-time updates.
  • Upon successful payment, Gatepay grants access to the protected resource (web page, file, API, etc.).
  • Any configured actions (webhooks, callbacks) are triggered automatically.
  • Use the Gatepay API or SDK to create links, define payment requirements, and manage resources.
  • Webhooks and callbacks allow automation of business logic (e.g., user provisioning, notifications).

See also: