📋 Description
This issue involves designing the "Entry Point" for commercial adoption. The Merchant Gateway is a specialized layer of the Aframp platform that allows businesses to generate invoices, process payments in cNGN, and manage their digital storefronts. Unlike a standard peer-to-peer wallet, the Merchant Gateway must handle high-concurrency transaction volumes, provide instant "Payment Confirmed" webhooks, and support complex metadata (like Order IDs and SKU details) required for business accounting.
🎯 Objective
Create a robust, developer-friendly infrastructure that allows any business to integrate cNGN payments into their existing checkout flow with minimal technical overhead.
🛠️ Technical Requirements
- Merchant Scoped API Keys:
- Implement a secure "Public/Private Key" pair system for merchants to authenticate their backend servers.
- Support for "Restricted Scopes" (e.g., a key that can only "Read" transactions but not "Refund").
- Unified Checkout Object:
- Define the
Invoice schema: amount_cngn, callback_url, expiry_time (e.g., 15 minutes), and merchant_reference.
- High-Speed Webhook Engine:
- A reliable notification service that sends a POST request to the merchant's server the moment the Stellar Network confirms a payment.
- Implement "Exponential Backoff" retries for failed webhook deliveries.
- Idempotency Logic:
- Ensure that a single "Order ID" cannot be paid twice, preventing duplicate charges for the same customer purchase.
✅ Acceptance Criteria
🔴 Priority: Critical
Labels: Merchant-Tools, API-Design, Ecosystem
📋 Description
This issue involves designing the "Entry Point" for commercial adoption. The Merchant Gateway is a specialized layer of the Aframp platform that allows businesses to generate invoices, process payments in cNGN, and manage their digital storefronts. Unlike a standard peer-to-peer wallet, the Merchant Gateway must handle high-concurrency transaction volumes, provide instant "Payment Confirmed" webhooks, and support complex metadata (like Order IDs and SKU details) required for business accounting.
🎯 Objective
Create a robust, developer-friendly infrastructure that allows any business to integrate cNGN payments into their existing checkout flow with minimal technical overhead.
🛠️ Technical Requirements
Invoiceschema:amount_cngn,callback_url,expiry_time(e.g., 15 minutes), andmerchant_reference.✅ Acceptance Criteria
payment_intent_idvia a REST API.PENDINGtoPAIDin under 5 seconds.🔴 Priority: Critical
Labels:
Merchant-Tools,API-Design,Ecosystem