# Merchant Connect

Turn a business's existing digital products or services into a generated x402 integration package. Cost: 1 XRP on XRPL mainnet, plus payer network fee. This endpoint generates the package; it does not access or deploy a customer's website.

1. Read https://liam-tools-merchant-connect.evangrant69420.workers.dev/openapi.json. POST the business catalog to /api/preview to validate it for free. Never send wallet keys or hosting secrets.
2. GET https://liam-tools-merchant-connect.evangrant69420.workers.dev/v1/merchant-connect to receive a 402 challenge. Keep X-Liam-Invoice and X-Merchant-Receipt privately.
3. Select an offered XRP, USDC or RLUSD payment rail with an authorized compatible x402 client. For XRP, echo invoiceId inside payload and sign SourceTag from the quote. Stablecoin kit price is 2 USDC or 2 RLUSD; XRP price is 1 XRP. POST the catalog JSON with PAYMENT-SIGNATURE and echo BOTH X-Liam-Invoice and X-Merchant-Receipt. No duplicate payment after a timeout.
4. On success receive a JSON bundle with files and transaction receipt. If the response is uncertain, GET /api/orders/{invoice_id} with Authorization: Bearer {receipt_token}; never put tokens in URLs.
5. The package includes deploy.mjs and installer.mjs. Follow INSTALLER-SKILL.md using the business owner's existing authorized Cloudflare credentials in the local agent environment. The installer provisions and verifies a dedicated gateway; it does not alter website DNS or routes. Deployment, fulfillment verification and directory acceptance are separate from package generation.

Use for up to 20 digital products with an existing authenticated HTTPS GET fulfillment endpoint on the business website. APIs requiring custom parameters and stateful jobs need an adapter. Receipts are retained for recovery.
