User Journey
What a person sees and what the system does when paying, in version 1 (Stripe test mode).
Pay for a document
Someone whose results are readyPAYMENT-V1-E6-01PAYMENT-V1-E6-02PAYMENT-V1-E6-03
Starts when: Taps 'Pay $5.00'.
The personSees the order summary, the price and a banner: 'Test mode — use card 4242 4242 4242 4242, any future date, any CVC'.
The systemThe app's page shows what is being bought.
The personTaps Pay $5.00.
The systemThe app's server asks Payment for an order; Payment creates it and a Stripe checkout page.
The personOn Stripe's page (not 01scale's), enters the test card and pays.
The systemStripe takes the payment and sends the person back to the app's success address.
The personSees 'Confirming payment…', then the downloads unlock.
The systemStripe's signed event reaches Payment, which marks the order paid and tells the app. The browser's return alone never unlocks anything.
Result: The order is paid, recorded once, and the app has been told.
Change your mind
Someone on Stripe's pagePAYMENT-V1-E6-03
Starts when: Taps back or Cancel on Stripe's page.
The personReturns to the app.
The systemStripe sends them to the cancel address. The order stays pending.
The personSees 'Payment cancelled — you haven't been charged' and a Pay button.
The systemNothing was charged.
The personTaps Pay again within the hour.
The systemPayment returns the same order and the same checkout page. No second order is made.
Result: No duplicate orders, no charge until the person completes payment.
Come back after the page expired
Someone who left for more than an hourPAYMENT-V1-E6-01PAYMENT-V1-E6-02
Starts when: Taps Pay again.
The personTaps Pay $5.00.
The systemStripe had expired the old page and told Payment, which marked that order expired. Payment creates a new order and page.
The personPays as usual.
The systemOnly the new order becomes paid.
Result: The expired attempt stays in the history; the person pays once.
Card is declined
Someone whose card failsPAYMENT-V1-E6-02
Starts when: Enters a declined test card on Stripe's page.
The personSees Stripe's message on Stripe's page and tries another card.
The systemStripe handles the decline itself; nothing reaches 01scale until a payment succeeds or the page expires.
Result: The person can retry on the same page.
When something goes wrong
- Taps Pay for something already paid
already_paid - Goes straight to the success page.
- The checkout page expiredOrder
expired - A new checkout page when tapping Pay again.
- An async payment method fails laterOrder
failed - 'Your payment didn't go through. Try again.'
- Stripe is unavailable when starting
stripe_unavailable - 'Payments are unavailable for a moment. You haven't been charged.'
- Stripe's confirmation is slow to arriveOrder still
pending - 'Confirming payment…' for a few seconds (the success page's job, `DOCFLOW-V1-E7-01`).
- Follows a link to someone else's order
order_not_found - 'Not found.'
- A forged or replayed Stripe event
invalid_stripe_signature - Nothing: it is rejected and changes no order.
User journeys on GitHub →