Skip to content

fix(plugin-ecommerce): non-customer auth in initiate/Stripe payment#16415

Open
nehaaprasaad wants to merge 1 commit intopayloadcms:mainfrom
nehaaprasaad:fix/eco-plg-non-cus-init-pay-str
Open

fix(plugin-ecommerce): non-customer auth in initiate/Stripe payment#16415
nehaaprasaad wants to merge 1 commit intopayloadcms:mainfrom
nehaaprasaad:fix/eco-plg-non-cus-init-pay-str

Conversation

@nehaaprasaad
Copy link
Copy Markdown

what

  • Hook async wrapper for Payload autorun job ticks.
  • Next wrapper clears render work-unit context before handlers run.
  • Shared cron/autorun options wired through initReq, login, logout, refresh.

Why

  • Stops revalidatePath / revalidateTag from failing when queued job handlers run without a Next request scope.

How

  • Optional init hook wraps each autorun tick.
  • Wrapper uses workUnitAsyncStorage.run(undefined, ...).
  • One place defines cron/autorun options; Next entrypoints reuse them.

Fixes #16377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: ecommerce plugin treats non-customer (API key) auth users as customers in initiatePayment + Stripe adapter

1 participant