Products · Payment V1

Payment

A one-time payment with Stripe Checkout in test mode.

Version 1 · Stripe Checkout, test modeDesigned, not builtModule 7 of 15

DesignUser JourneySections

User Journey

What a person sees and what the system does when paying, in version 1 (Stripe test mode).

Pay for a document

Starts when: Taps 'Pay $5.00'.

  1. 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.

  2. The personTaps Pay $5.00.

    The systemThe app's server asks Payment for an order; Payment creates it and a Stripe checkout page.

  3. 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.

  4. 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

Starts when: Taps back or Cancel on Stripe's page.

  1. The personReturns to the app.

    The systemStripe sends them to the cancel address. The order stays pending.

  2. The personSees 'Payment cancelled — you haven't been charged' and a Pay button.

    The systemNothing was charged.

  3. 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

Starts when: Taps Pay again.

  1. 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.

  2. 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

Starts when: Enters a declined test card on Stripe's page.

  1. 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 paidalready_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 startingstripe_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 orderorder_not_found
'Not found.'
A forged or replayed Stripe eventinvalid_stripe_signature
Nothing: it is rejected and changes no order.