Skip to content

Storefront checkout success path is untested in-process (no Stripe gateway wired) #286

Description

@vedanshujain

The plugin's commerce client now always constructs in-process — there is no remaining HTTP mode. The in-process client currently wires only the x402 payment gateway, not Stripe.

As a result, createOrderFromCart's success path is unreachable for Stripe-based checkout when running in-process, since there's no way to complete a Stripe payment confirmation against the in-process gateway wiring.

The corresponding test coverage was parked as test.todo in the checkout sandbox test suite (storefront-checkout.sandbox.test.ts) pending the Stripe gateway being wired in-process. The parked cases cover:

  • idempotency-key forwarding
  • buyerRef / clientAction / ship-to passthrough
  • private-field stripping
  • replay / alreadyPlaced handling
  • total formatting, including locale
  • typed error-code mapping

Once the Stripe gateway is wired into the in-process commerce client, these test.todo cases should be converted to real assertions.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions