Skip to content

bug: client_secret is undefined #7

@Labham-Jain

Description

@Labham-Jain

I got this error that client_secret is undefined and cannot proceed to checkout.

Steps to reproduce:

  1. npx create-medusa-app
  2. choose medusa-starter-default
  3. choose medusa.express (Next.js)
  4. add stripe_publishable_key in env
  5. connected with my existing medusa backend which has stripe integrated using medusa-plugin-stripe
  6. Ran my app filled all the product & address details, at payment when I clicked the complete order I got this error

Inspecting Payment component, stripeSession.data.client_secret is undefined.

I want to point out that setPaymentSession (which returns the client secret) is being called after confirmCardPayment. That might be the issue??

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