Forum Replies Created
-
AuthorPosts
-
Admin
KeymasterI”m having a similar problem, but intermittently:
Following error occured during payment processing:
Invalid Stripe Token
Debug data:
{“stripeAmount”:”400.00″,”stripeCustomFieldName”:”Rules”,”stripeCustomField”:”on”,”stripeProductId”:”153″,”stripeToken”:””,”stripeTokenType”:””,”stripeEmail”:””,”stripeButtonKey”:”4326cab52bb265b040e8e921670b3a47″,”stripeItemPrice”:”0″,”stripeTax”:”0″,”stripeShipping”:”0″,”stripeItemCost”:”0″,”asp_action”:”process_ipn”,”item_name”:”Donate to the Campaign”,”item_quantity”:”1″,”currency_code”:”USD”,”item_url”:””,”thankyou_page_url”:””,”charge_description”:””,”_wpnonce”:”2682115951″,”_wp_http_referer”:”\/donate\/”}The user reported
“I just attempted to contribute on our web site. It thanked me, but never asked for my name or credit card information.”I’m using the WordPress Twenty Seventeen Theme. My shortcode is
[asp_product id=”153″]I’ve checked the box for Disable Buttons Before Javascript Loads.
This happened before when a was using IE 11, checking the box didn’t help him, either. (I asked him to try again and the credit card payment box didn’t appear). It worked for him on Chrome.
Thanks.
Greg
Admin
KeymasterNot at the moment. This is one our list of things to do.
Admin
KeymasterCan you copy and paste the shortcode that you are using so I can see if there is any mistake there?
Also, can you do a quick test by switching the theme to the default WordPress theme and seeing if the button behaves differently?
Admin
KeymasterIf the nonce value goes stale (old value that is cached) then you see this error. Exclude the page containing the Stripe payment button (so the nonce value is always fresh).
Let me know how you go after that.
Admin
KeymasterPlease try the following. Go to the following interface of the plugin:
Stripe Payments -> Settings -> Advanced Settings
Look for the following checkbox in the “Additional Settings” section there:
Disable Buttons Before Javascript Loads
Check that option and save it.
Does it work better after that?
Admin
KeymasterHi, Stripe uses AVS for street address and zip code matching. If selected, Strip will decline the card for no match. This prevents use from a stolen card as the address is probably unknown even when a thief has the card in his or her possession. I see on your plugin I can request to collect the addresses. I take it this is for my benefit for mailing latter but I do not see that the plugin is utilizing Strip’s AVS. Does your plugin use Stripe AVS when collecting addresses? If not, please allow this function. Thank you.
Admin
KeymasterWhat do you mean by verify address with Stripe?
Admin
KeymasterPlease try the following. Go to the following interface of the plugin:
Stripe Payments -> Settings -> Advanced Settings
Look for the following checkbox in the “Additional Settings” section there:
Disable Buttons Before Javascript Loads
Check that option and save it.
Does it work better after that?
Admin
KeymasterLog file data from yesterday below, first entry was successful, then 6 failures later in the day. Thinking it might have been the same person trying multiple times since the failures were within minutes of each other.
[04/24/2018 4:10 PM] – Payment processing started.
[04/24/2018 4:10 PM] – Triggering hook for addons to process posted data if needed.
[04/24/2018 4:10 PM] – Checking received data.
[04/24/2018 4:10 PM] – Got product ID: 29. Trying to get info from database.
[04/24/2018 4:10 PM] – Got required product info from database.
[04/24/2018 4:10 PM] – Getting API keys and trying to create a charge.
[04/24/2018 4:10 PM] – Firing pre-payment hook.
[04/24/2018 4:10 PM] – Processing payment.
[04/24/2018 4:10 PM] – Firing post-payment hooks.
[04/24/2018 4:10 PM] – Payment has been processed successfully.[04/24/2018 9:26 PM] – Payment processing started.
[04/24/2018 9:26 PM] – Triggering hook for addons to process posted data if needed.
[04/24/2018 9:26 PM] – Checking received data.
[04/24/2018 9:26 PM] – FAILURE: Invalid Stripe TokenAdmin
Keymaster[asp_product id=”29″]
Admin
KeymasterWhat shortcode are you using?
Admin
KeymasterHello !
That’s perfect you’ve pointed the problem very well, thank you very much as it was pretty urgent 🙂
Admin
KeymasterCan you please do a little test for me (since this is your test site).
Open the following file of the plugin:
stripe-payments/public/includes/class-shortcode-asp.php
Go to line number 349. The following line:
$item_price = $price * 100;
Change it to the following and save the file:
$item_price = floatval($price) * 100;
Does it make a difference after that?
Admin
KeymasterHi,
Here is the link to the page : 45e5087b.ngrok.io/page-test-a-supprimer/
(I’m in local so it’s not very fast yet)
Don’t pay attention to the form, the sortcode is right below 🙂 Thank you for the helpAdmin
KeymasterThe shortcode looks fine. Can you please share a link to the page where you have the Stripe donation button? That way I can take inspect the values on the site.
-
AuthorPosts