• Resolved stjohnfun

    (@stjohnfun)


    Hello, I am trying out your simple stripe plugin to see if it will work for my site. I believe I have done everything required but am getting this error message when clicking the pay with card button. I noticed another user had this issue but did not see an answer to their question. They seem to have figured it out but I cannot. Thanks for your help! My webpage is https://buoyantwebdesign.com/payment

    Fatal error: Uncaught exception ‘Stripe_InvalidRequestError’ with message ‘You passed an empty string for ‘card’. We assume empty values are an attempt to unset a parameter; however ‘card’ cannot be unset. You should remove ‘card’ from your request or supply a non-empty value’ in /home/buoyantw/public_html/wp-content/plugins/stripe/libraries/stripe-php/Stripe/ApiRequestor.php:152 Stack trace: #0 /home/buoyantw/public_html/wp-content/plugins/stripe/libraries/stripe-php/Stripe/ApiRequestor.php(212): Stripe_ApiRequestor->handleApiError(‘{? “error”: {?…’, 400, Array) #1 /home/buoyantw/public_html/wp-content/plugins/stripe/libraries/stripe-php/Stripe/ApiRequestor.php(114): Stripe_ApiRequestor->_interpretResponse(‘{? “error”: {?…’, 400) #2 /home/buoyantw/public_html/wp-content/plugins/stripe/libraries/stripe-php/Stripe/ApiResource.php(113): Stripe_ApiRequestor->request(‘post’, ‘/v1/customers’, Array) #3 /home/buoyantw/public_html/wp-content/plugins/stripe/libraries/stripe-php/Stripe/Customer.php(38): Stripe_ApiResource::_ in /home/buoyantw/public_html/wp-content/plugins/stripe/libraries/stripe-php/Stripe/ApiRequestor.php on line 152

    https://ww.wp.xz.cn/plugins/stripe/

Viewing 2 replies - 1 through 2 (of 2 total)
  • @stjohnfun,

    Thanks for using our plugin and I am sorry you are having some issues. I am going to help you the best I can.

    So first off I noticed that for some reason the amount is not being added like it should be. When I inspect the code for your site I see this: http://screencast.com/t/TTP5R3S7Gq

    You will notice that the value is empty. This is not what should be happening as you can see from a test page I have: http://screencast.com/t/1kfJ4jQEBr4

    I also took a look at the error console and it looks like you have 3 errors and 4 warnings. These could possibly be causing the Stripe button from working.

    Can you try deactivating any other plugins you have and move back to a default theme to see if the plugin works if it is installed alone?

    If it does work after that, then try installing plugins/activating a different theme one at a time until it breaks again and then we can see if we have a conflict with a theme or plugin.

    Hope this helps and please share your results with me so we can continue working to make this plugin the best it can be.

    Thanks!
    Nick Young

    Marking as resolved assuming this has been fixed due to lack of activity here.

    If you have any other problems please let us know.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error on submission’ is closed to new replies.