• Resolved fwkart

    (@fwkart)


    Hello, I received an error message today that a payment was cancelled. Here is the error message:

    The logs on Stripe show this:

    Do you know where the problem could be? WooCommerce says that I should use the Payment Intents API.

    invalid_request_error

    The Sources API has been deprecated, and we are no longer allowing new integrations. Please follow our migration guide to integrate with the Payment Intents API: https://stripe.com/docs/payments/payment-methods/transitioning

    Best regards
    René

    • This topic was modified 8 months, 4 weeks ago by fwkart.
    • This topic was modified 8 months, 4 weeks ago by fwkart.
Viewing 8 replies - 1 through 8 (of 8 total)
  • ?? hi @fwkart

    Thanks for reaching out about this. Let’s troubleshoot it together!

    From the provided screenshots, it appears:

    • The API version is dated (2019)
    • The Stripe plugin can be updated to version 8.0.0; the latest version available (now 7.9.3)
    • The webhooks need to be set up anew

    Therefore, as a next step, kindly proceed with the following:

    1. Delete the current webhooks, and set them anew, as detailed in the documentation, linked here.
    2. While doing so, make sure the latest version of Stripe API is selected (in the options at?dashboard.stripe.com)

    I trust this helps! Please let us know how it goes, and if you have any further questions or concerns.
    We will be happy to help you further.

    Thread Starter fwkart

    (@fwkart)

    Thank you Pepe for the super quick response. I have created a new API key and also renewed the webhook. If the problem persists, I will get back to you.

    Thank you and best regards
    René

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @fwkart,

    That sounds like a plan.

    If the problem continues, please don’t hesitate to reach out to us. We’re here to help and ensure your experience with WooCommerce Stripe Payment Gateway is as smooth as possible.

    Thanks!

    I experience a similar problem, with SEPA Direct Debit. I spoke with Stripe and they say the plugin uses a deprecated API (the Sources one you also saw in your error).

    “Thank you for accepting my call earlier about the error you received when trying to accept SEPA direct debit transactions.?

    Upon checking, it seems like you’re trying to pass the source API for this request; hence, it generates the error invalid_request_error.

    The Sources API has been deprecated, and we are no longer allowing new integrations. 

    You may then reach out to your developer or your third-party plug-in by following our migration guide to integrate with the Payment Intents API instead, so you may accept SEPA Direct Debit transactions:

    https://docs.stripe.com/payments/payment-methods/transitioning

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @bartnl,

    I suggest that you start a new thread with your case, so that we don’t mix several troubleshooting sessions in one thread.

    Even if the symptoms are the same, perhaps the underlying problem is different in your case.

    Thank you.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Hi there !

    I encountered the same issue as @bartnl and found a quick fix (in my case). Hope this can help other users and developers who are working on the plugin.

    Issue explained :

    • I wanted to add SEPA Direct Debit so I enabled the new payment method
    • Then, I got an issue with this error : “invalid_request_error. The Sources API has been deprecated […]”
    • So, I enabled the “New Checkout Experience” but this caused a new Fatal Error (see screenshot below) : “ValueError: Unknown format specter “|” in /wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-method-sepa.php on line 61″
    • As you can see, the last called stack was a french translation of this sentence : “%1$sTest mode:%2$s use the test account number AT611904300234573201. Other payment methods may redirect to a Stripe test page to authorize payment. More test card numbers are listed %3$shere%4$s.”
    • So I “hard edited” the translated sentence (into the woocommerce-gateway-stripe-fr_FR.po) and then works fine now !
    • Here’s my suggested french translation (with the right SEPA test account number for France) : “%1$sMode test:%2$s utilisez le numéro de compte de test FR1420041010050500013M02606. Les autres méthodes de paiements peuvent rediriger vers une page de test Stripe pour autoriser le paiement. D’autres numéros cartes sont listées %3$shere%4$s.”

    Best,
    Emmanuel.

    Hey, @emontecer!

    Thanks for sharing your solution here and contributing to the WooCommerce community!

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Payment Intents API – Order cancelled’ is closed to new replies.