Payment Flows
Payment Flows
Section titled “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.
1. User Accesses a Gatepay Link
Section titled “1. User Accesses a Gatepay Link”- The user visits a Gatepay link (e.g., https://link.gatepay.cloud/your-link).
- Gatepay responds with payment requirements (network, asset, amount, payTo address).
2. Payment Request & Wallet Interaction
Section titled “2. Payment Request & Wallet Interaction”- 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.
3. Payment Monitoring & Verification
Section titled “3. Payment Monitoring & Verification”- 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.
4. Access Granted & Resource Delivery
Section titled “4. Access Granted & Resource Delivery”- Upon successful payment, Gatepay grants access to the protected resource (web page, file, API, etc.).
- Any configured actions (webhooks, callbacks) are triggered automatically.
5. Developer Integration Points
Section titled “5. Developer Integration Points”- 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: