Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Addon Related › Stripe Payment Gateway Error In Test Mode
Tagged: stripe, stripe error
- This topic has 5 replies, 2 voices, and was last updated 11 years, 3 months ago by wpCommerce.
-
AuthorPosts
-
August 14, 2013 at 3:07 am #9482RobertParticipant
I’m trying to use Stripe in Test mode and am getting the following error:
Stripe – credit card charge failed
Response Status – 400
Error Type – invalid_request_error
Error Code –
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
Here is the link to the debug file:
[http://realskinsolutions.com/wp-content/plugins/wp-payment-gateway/wp_pg_debug.log]
Please advise
August 14, 2013 at 7:34 am #57154wpCommerceModeratorHi, can you please provide a link to the page where I can add a product to the shopping cart and checkout via Stripe?
Stripe script automatically creates a token when credit card information is submitted. This token is generated via JavaScript when a user clicks on the the “Submit” button. So you need to make sure that there is no JavaScript error on the “Collect Details” page. Otherwise, the script will not be able to create the token due to JavaScript conflict.
Here is a good resource which will help you find JavaScript errors on a webpage:
https://support.tipsandtricks-hq.com/forums/topic/debugging-javascript-errors-on-your-site
August 14, 2013 at 4:20 pm #57155RobertParticipantI looked and didn’t see any JavaScript errors. Some minor HTML errors. Here is the link to the page for adding items to the cart:
[http://realskinsolutions.com/skin-care-products]
Once something is added to the cart, click checkout.
August 15, 2013 at 2:27 am #57156wpCommerceModeratorHi, can you please disable the “Fancy Redirection On Checkout” option in the eStore settings for now? Please also enable sandbox in the gateway bundle settings so I can try a full checkout. You will need to replace your “live” Stripe api credentials with the sandbox ones. You can find them under “Your Account -> Account Settings ->API Keys” section of your Stripe account.
August 15, 2013 at 3:32 am #57157RobertParticipantOk, I have disabled the “Fancy Redirection On Checkout” and enabled the sandbox in the gateway bundle. The api credentials are already test ones.
Just ran a test through and everything worked.
Does the “sandbox” need to be enabled to test?
So does that mean the “Fancy Redirection On Checkout” has to remain off?
August 16, 2013 at 1:02 am #57158wpCommerceModeratorHi, Fancy redirection may not work properly on some sites. So if it’s the source of this issue I would recommend you to turn it off.
If the sandbox transaction goes through you should be able to do a live one as well. You can change the api credentials back to the lives ones and give it a try.
-
AuthorPosts
- You must be logged in to reply to this topic.