Skip to content

Testnet: Payment Link & Invoice Full Flow Test #121

@0xdevcollins

Description

@0xdevcollins

Summary

Validate the no-code payment products end-to-end: a merchant creates a payment link and invoice, a consumer pays both, and the merchant confirms receipt.

Payment Link Flow Test

  1. Merchant creates link: fixed amount $10, single-use, 7-day expiry
  2. Copy link URL → open in incognito (simulates consumer)
  3. Consumer landing page shows merchant branding, amount, description
  4. Consumer selects crypto (Stellar USDC) and pays
  5. Link status → USED in dashboard
  6. Merchant receives real-time WebSocket notification: "Payment link just paid"
  7. Toast notification appears in dashboard
  8. Link correctly prevents reuse (returns expired page)

Invoice Flow Test

  1. Merchant creates invoice: 2 line items, 10% tax, $0 discount, due in 7 days
  2. Merchant sends invoice → email delivered to test inbox (Resend)
  3. Consumer clicks "Pay Now" in email → invoice landing page opens
  4. Invoice details render correctly (line items, tax, total)
  5. Consumer pays via card (Stripe test card)
  6. Invoice status → PAID in dashboard
  7. PDF invoice generated, downloadable from dashboard
  8. Merchant receives invoice.paid webhook event

Edge Cases

  • Expired payment link shows correct expired state
  • Partially paid invoice shows correct remaining balance
  • Invoice sent to non-existent email address returns Resend error gracefully

Pass Criteria

  • Payment link complete flow works end-to-end
  • Invoice email delivered and pay flow works end-to-end
  • All status transitions correct
  • WebSocket real-time updates fire at each step

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendFrontend/UI worktestingTests and validation

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions