• Hello,

    After updating to the WC Stripe 4.2.3 plugin, WC Rest Payment no longer works.

    It took a while to track down the error with both Stripe and WooCommerce but this is from Stripe support:

    —–
    The problem lies in that the integration (which from what I can tell is a WooCommerce plugin) is making a request to the PaymentIntents API but passing in incorrect parameters.

    The PaymentIntent’s API currently accepts Token, Card, Source and PaymentMethod object IDs in its payment_method:?parameter.
    But it looks like the API requests made via your integration currently are passing source: tok_123?, which is not supported.
    The source:? field only supports Source object IDs on Stripe (src_123), not Token IDs.
    —–

    If I roll back to WooCommerce Stripe 4.1.8, everything still works but it would be great to get this plugin updated to work with the latest WC Stripe plugin.

    I’d be happy to help more with this and making a PR but the GitHub repo for this plugin is no longer there.

    At this point, yours is the only plugin that can process payments with WooCommerce from a front end JavaScript app and I’ve seen a few other threads with this issue.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Wondering if you found a solution for this @joshuaiz? I am hitting against the same issue and see exactly what you’re referencing in terms of the Payment Intent API.

    Thread Starter joshuaiz

    (@joshuaiz)

    Hi @jillmolloy. I ended up staying with rolling back to the 4.1.8 Stripe Add-on to make it work with WC Rest Payment.

    Unfortunately, it doesn’t look like WC Rest Payment is being updated or maintained and after having a look through the plugin code, there didn’t seem to be anything obvious to fix.

    I also contacted WooCommerce support and while they were helpful, didn’t seem eager to want to fix this. In fact, they stated that the WooCommerce support for the REST API was not intended to be used for payment(!?). If you can’t create a working store, what is it for then?

    Rolling back to 4.1.8 of the Stripe Add-on is only a temporary solution so what I’m planning is to port everything over to WPGraphQL and bypass the REST API entirely.

    There’s a WooCommerce plugin for WPGraphQL that is still in early stages but I’m following the development on Slack and it’s coming along: https://github.com/wp-graphql/wp-graphql-woocommerce

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working with latest WC Stripe Add-On’ is closed to new replies.