Forum Replies Created
-
AuthorPosts
-
AdminKeymaster
Log 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 TokenAdminKeymaster[asp_product id=”29″]
AdminKeymasterWhat shortcode are you using?
AdminKeymasterHello !
That’s perfect you’ve pointed the problem very well, thank you very much as it was pretty urgent 🙂
AdminKeymasterCan 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?
AdminKeymasterHi,
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 helpAdminKeymasterThe 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.
AdminKeymasterHi 🙂 Thank you for your answer.
The shortcode I’m using is : [asp_product id=”560″]
For the amount to order, I didn’t write anything so it is the default value 1. For the price, it is the same because it is for donation, I want people to donate the amount they want. What do you think ?
AdminKeymasterWe don’t have anything with ACH at the moment.
AdminKeymasterThat usually happens if a price or quantity amount is using an incorrect value somewhere. What is the exact shortcode that you are using?
April 20, 2018 at 4:11 pm in reply to: Stripe Payment Plug-in is failing with this error message. #665AdminKeymasterThe price amount in the shortcode looks to be “0.0”. That is not a valid amount for Stripe. Stripe has a minimum amount I believe. So try setting your product price correctly.
AdminKeymasterWe have plans to add an option for it.
AdminKeymasterAt the moment it doesn’t have an option to do per product email.
The notification email has many tags/shortcodes that you can use to customize it and make it generic. It is capable of including the download link of the purchased product (for any item that they buy). We only have the option to do per product thank you page.
AdminKeymasterThat action hooks passes 2 arguments to the callback function. So make sure to catch it like the following example:
add_action ('asp_stripe_payment_completed', 'execute_my_custom_code', 10, 2); function execute_my_custom_code ($post_data, $charge) { //Do stuff here }
AdminKeymasterYou can specify a CSS class for the button in the product configuration interface. Then you can use CSS tweaks to customize the button. The following tutorial should show you what the process is and it has some examples that will be helpful for you:
-
AuthorPosts