StoicBuilder
Later missionMission 49: Paid, and still locked outYou can practise it now. It counts once you reach mission 49, after “Draw the lines before the servers”.Back to HQ
Exit lesson
Eventual consistencyProLesson 44 of 45, about 8 min
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
0 XP

The app: Blueprint, a design board

BlueprintHarbor / Billing flowsArchitecture guild

Preview: Harbor’s invoice page, with the payment flow behind it

HarborBilling · team_7
INV-2291 December, Team planUnpaid
$47.50
On its way to HarborNothing yet.

What each part of Harbor knows, and when

Stripe the payment, at its sourcenot paid
{
"id": "pi_DEMO_8812",
"object": "payment_intent",
"amount": 4750,
"currency": "usd",
"status":
}
On its way the webhook from Stripe to Harbor
Nothing yet.
Harbor: invoices what the invoice page readsunpaid
{
"id": "inv_2291",
"teamId": "team_7",
"total": 4750,
"status": ,
"paidAt": null
}

The MagisterBlueprint can play a flow through Harbor. Here, team_7 pays its December invoice. Stripe charges the card at once and tells the browser, but Harbor hears about it a moment later, through a webhook. Press Pay, tap the invoice’s status while the webhook is on its way, then deliver it.

Step 1 of 7Pay, look at the invoice, then deliver the webhook
  • Pay the invoice
  • Tap the invoice’s status on the right
  • Deliver the webhook

You’re not signed in, so this lesson won’t be saved to your path. Sign in free to keep your XP.