-
Notifications
You must be signed in to change notification settings - Fork 21
Testnet: Payment Link & Invoice Full Flow Test #121
Copy link
Copy link
Open
Labels
Description
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
- Merchant creates link: fixed amount $10, single-use, 7-day expiry
- Copy link URL → open in incognito (simulates consumer)
- Consumer landing page shows merchant branding, amount, description
- Consumer selects crypto (Stellar USDC) and pays
- Link status →
USEDin dashboard - Merchant receives real-time WebSocket notification: "Payment link just paid"
- Toast notification appears in dashboard
- Link correctly prevents reuse (returns expired page)
Invoice Flow Test
- Merchant creates invoice: 2 line items, 10% tax, $0 discount, due in 7 days
- Merchant sends invoice → email delivered to test inbox (Resend)
- Consumer clicks "Pay Now" in email → invoice landing page opens
- Invoice details render correctly (line items, tax, total)
- Consumer pays via card (Stripe test card)
- Invoice status →
PAIDin dashboard - PDF invoice generated, downloadable from dashboard
- Merchant receives
invoice.paidwebhook 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
Reactions are currently unavailable