• Resolved gheldin

    (@gheldin)


    Hi guys, i have error like this:
    “You cannot use line_items.amount, line_items.currency, line_items.name, line_items.description, or line_items.images in this API version. Please use line_items.price or line_items.price_data. Please see https://stripe.com/docs/payments/checkout/migrating-prices for more information.”

    My stripe account use the new api version: API version 2022-08-01
    Any solution? Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @gheldin,

    Greetings from WebToffee! Thanks for reaching out to us on this forum.

    As our plugin is not yet compatible with the recently released Stripe API version, please roll back to the previous version.

    We will release a new version compatible with the latest Stripe API version soon. Thank you for understanding. Let us know if you need any further assistance.

    Thread Starter gheldin

    (@gheldin)

    Hi webtoffee,
    Thanks for the answer, how can i roll back the API version?

    Plugin Author WebToffee

    (@webtoffee)

    Hi @gheldin,

    You can roll back the API version from your Stripe dashboard. Please go to Stripe dashboard > developers. From here, you can see the option to roll back near the API version. The roll back option will be visible for up to 72 hours from the time you updated. Please complete the process before it disappears. Let us know if you need any further information.

    Thread Starter gheldin

    (@gheldin)

    Sadly i cant roll back, cause its a new account, i didnt upgraded, now this is the default API version for new accounts, i think.

    Plugin Author WebToffee

    (@webtoffee)

    Hi @gheldin,

    We are sorry to hear that. We have made a code snippet to override the new Stripe API version for the time being. You may use this fix until we release a compatible version. Please copy the code snippet from here and paste it into your child theme’s function.php file.
    (WordPress Dashboard > Appearance > Theme Editor > functions.php)

    Plugin Author WebToffee

    (@webtoffee)

    Hi @gheldin,

    We’ll mark this thread as resolved for the time being because it has been inactive for a bit. Please feel free to open a new thread or follow up on this thread if you have any further questions or require assistance.

    I also have this problem and would love some help if possible.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘API error’ is closed to new replies.