Rebasely Beta: data may be purged

examples/storefront Public

Move payments into its own Worker #2

Changed files

30 files changed345 additions238 deletionssince main at 94db762

System

1 component added, 2 changed, 1 removed, 3 connections added, 3 connections removed, 1 view changed, 3 dataflows changed

  • Added
  • Changed
  • Removed
What this pull request changes in the system: 8 components, 10 connections storefront-api to db (d1)storefront-api to images (r2)storefront-api to payments (rpc): addedstorefront-api to order-events (queue)payments to storefront-api (rpc): addedpayments to stripe (https): addedfulfilment to storefront-api (rpc)storefront-api to stripe (https): removedstripe-webhook to storefront-api (rpc): removedstripe-webhook to stripe (webhooks): removedd1r2rpcqueuerpchttpsrpchttpsrpcwebhooksstorefront-api (changed)storefront-apiWorker · changedpayments (added)paymentsWorker · addedfulfilmentfulfilmentWorkerdbdbD1 databaseimagesimagesR2 bucketorder-eventsorder-eventsQueuestripe (changed)stripeExternal · changedstripe-webhook (removed)stripe-webhookWorker · removed

The system at the head of this pull request, with what it adds, changes and removes from the merge base 94db762. Select a component for what changed in it.

order-events

Queue order-events: order.paid and order.cancelled, sent by OrdersService when an order changes state. Consumed by fulfilment (queues.consumers in its wrangler.jsonc). At least once, so consumers dedupe by order id.

Not changed by this pull request.

Takes part in Expiring an unpaid order, Fulfilling a paid order.

Changes

  • Changed: ~ storefront-api: description
  • Added: + component payments (worker)
  • Changed: ~ stripe: description
  • Removed: − component stripe-webhook (worker)
  • Added: + edge storefront-api → payments (rpc)
  • Added: + edge payments → storefront-api (rpc)
  • Added: + edge payments → stripe (https)
  • Removed: − edge storefront-api → stripe (https)
  • Removed: − edge stripe-webhook → storefront-api (rpc)
  • Removed: − edge stripe-webhook → stripe (webhooks)
  • Changed: ~ view checkout: components +payments −stripe-webhook
  • Changed: ~ flow checkout: 1 step added, 3 rerouted, description changed
  • Added: + flow order-expiry
  • Changed: ~ flow order-fulfilment: 2 steps rerouted, description changed

Knowledge base

Back to the conversation