Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Stripe error – Invalid Source Object

stripe checkout
    • 6 years ago SCPKris
      Participant

      I recently started having intermittent issues with my stripe payment processor plugin & woocommerce with June.  This is the error I see from time to time – Invalid source object: must be a dictionary or a non-empty string. See API docs at https://stripe.com/docs’.

      Tried many difference plugins with varied results – most of the time the CC fields don’t even appear.  Never have seen the Stripe payment screen.

    • 6 years ago Ruco
      Keymaster

      Hello,

      Please can you share with us your wp credentials and ftp through your profile details so we can access your website and try to fix that issue.

      Let me know.

      Have a nice day :)

    • 6 years ago SCPKris
      Participant
      This reply has been marked as private.
    • 6 years ago SCPKris
      Participant
      This reply has been marked as private.
    • 6 years ago SCPKris
      Participant
      This reply has been marked as private.
    • 6 years ago SCPKris
      Participant

      Is there any update on this request?

    • 6 years ago Ruco
      Keymaster

      Hello,

      I’m looking on it just right now.

      Regards!

    • 6 years ago Ruco
      Keymaster

      Hello,

      I just tested anything. I have disabled the plugin to test if anyone of them caused the issue but there is no problem with the plugin.

      After i that i have tried to change the theme after that i have tested again the payment. The result is the same error.

      https://imgur.com/FL9kVep

      Please check out your your payment gateway. There is no problem linked with the theme or any plugin. I know that is frustrating but the only solution is to check your payment gateway and maybe contact the stripe support.

      Sorry for the delay, this is the maximum i can make for the moment.

      Have a nice day!

    • 6 years ago SCPKris
      Participant

      Ruco,

      I started at Stripe support, even tried multiple stripe plugins (first and third party), and they said it looked to be a theme problem.  I don’t understand what the payment gateway is if it isn’t the stripe plugin + woocommerce working together.

    • 6 years ago Ruco
      Keymaster

      Hello,

      Please explain to them that you have tested also with a default WordPress theme and you have seen the same issue.

      Let me know

    • 6 years ago SCPKris
      Participant

      Do you want to look at the logs from Stripe to see if that helps?  It looks like the card # is not being pulled over – how to we check to make sure the field references are correct?

    • 6 years ago SCPKris
      Participant
      This reply has been marked as private.
    • 6 years ago SCPKris
      Participant

      If I switch over to the first party WooCommerce/Stripe plugin, I see this error in my browser:

       

      codeless-main.js?ver=5.2.2:349 Uncaught ReferenceError: browser is not defined

      at Object.CL_FRONT.fixCompatibilities (codeless-main.js?ver=5.2.2:349)

      at HTMLDocument.<anonymous> (codeless-main.js?ver=5.2.2:126)

      at i (jquery.js?ver=1.12.4-wp:2)

      at Object.add [as done] (jquery.js?ver=1.12.4-wp:2)

      at a.fn.init.n.fn.ready (jquery.js?ver=1.12.4-wp:2)

      at Object.CL_FRONT.bindEvents (codeless-main.js?ver=5.2.2:99)

      at Object.CL_FRONT.siteInit (codeless-main.js?ver=5.2.2:20)

      at codeless-main.js?ver=5.2.2:4561

      at codeless-main.js?ver=5.2.2:4632

    • 6 years ago SCPKris
      Participant

      I heard back from Stripe and sent them my copy of payment-method.php  and they said that “card” shouldn’t be a part of this request.  Does this help at all?

      —

      Taking a further look, according to our API Reference Guide, “card” shouldn’t be included in request. If you take a look at the Guide you’ll see that after “description”, “card” should be under “payment_method_details”.

      You’ll need to change this in the code or reach out to the plugin to have them do it.

      https://stripe.com/docs/api/charges/create

      • This reply was modified 6 years ago by SCPKris. Reason: removed rich text code
    • 6 years ago SCPKris
      Participant

      Looks like the payment processing is working now.  Tried installing an old woocommerce stripe plugin and deactivating async for the cart/checkout.

       

      Having some new issues – will open a new ticket.

    • 6 years ago Ruco
      Keymaster

      Oh, i’m happy that you payment gateway is working now.

      I will check your other ticket now.

      Regards!

Viewing 15 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password