Skip to content

No cost order not working in checkout - extension is using older API version #717

@sorcamarian

Description

@sorcamarian

Bug report

https://docs.stripe.com/payments/checkout/no-cost-orders

  • Extension name: [e.g. firestore-stripe-payments]

Describe the bug

I am trying to apply a 100% discount on a one-time payment product.
Applying the code from the dashboard to an invoice does work.
The code is not working in my checkout initialized with the plugin - it works for subscriptions but not for my one-time product purchase
In the logs I see:
POST /v1/checkout/sessions API version [2022-11-15](https://docs.stripe.com/changelog/2022-11-15)
But since apiVersion: '2023-08-16' } the No cost orders have been adde from what I know.

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. Chrome, Safari]

Additional context

Add any other context about the problem here.

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