Stripe doesn’t take the correct price
-
Hello
I have a form with a Stripe field and a PayPal field.
Both take the price from a third field “precio”.
Screenshot of the field with an amount:
https://i.postimg.cc/7Lpc9hkx/field-precio.jpg
PayPal works correctly, but Stripe always puts a price of 1€, regardless of the amount you put.
The field is configured correctly, with variable price depending on the “Price” field, but it seems to ignore it.
Screenshot of the Stripe configuration:
https://i.postimg.cc/DZLNMhv1/stripe-settings.jpg
Screenshot of the code with the actual Stripe values:
https://i.postimg.cc/25qMnvgc/code.jpg
I cleared web cookies and Stripe cookies, cache but everything is still the same.
How can I fix this? The website is under maintenance, so I can’t provide a url.
Thanks.
-
This topic was modified 1 year, 4 months ago by
efquintana.
-
This topic was modified 1 year, 4 months ago by
-
Hello @efquintana
Hope you’re doing well today! I am sorry to hear about the issue you’re facing.
Based on the screenshots you’ve shared, the stripe field looks to be fine. However, to replicate and troubleshoot the issue further, could you please share the form export with us so that we can take a closer look?
To share the form export
– Navigate to the “Forminator -> Forms” page in your site’s back-end
– click on a little “gear” icon next to the form in question
– select “Export” option
– copy given export code and paste it at https://pastebin.com
– include link to that paste in your response below.Note: this export will not include any data that is already submitted – they’ll stay safely on your site and we don’t need them anyway.
Kind Regards,
SaurabhHi
Thanks for replying. The link you asked for: : https://pastebin.com/a5pMrCHU
The price is sent via URL through a variable “price”.
This part is working as it should since it is displayed in the form field and PayPal uses it correctly.
Hi @efquintana
Screenshot of the code with the actual Stripe values:
The above value picked isn’t an indicator and it’ll always be the same with any amount entered.
Could we know what exact error you notice after submission? Or are you able to submit the form?
Could you also enable a debug log in order to see if that helps with providing further clues regarding the issue?
To enable debug mode, open your wp-config.php file located in your root directory, and look for define(‘WP_DEBUG’, false);. Change it to:
define('WP_DEBUG', true);In order to enable the error logging to a file on the server you need to add:
define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); define( 'SCRIPT_DEBUG', true );
After making the above changes, please try to replicate the issue. The related errors will be saved to a debug.log log file inside the /wp-content/ directory.Please attach these in your next reply via Google Drive, Dropbox or any such cloud services, so that we could give a closer look. You can find more details about debugging here:
https://learn.wordpress.org/tutorial/debugging-in-wordpress/Please let us know how that goes, have a nice day.
Kind Regards,
NithinI’ll tell you what I noticed.
In addition to card payment, I have Klarna split payment activated in Stripe for products over €200.
I noticed that even if they were more expensive products (for example the €360 in the screenshot), the tab for that payment method was never activated.
When I removed the minimum, I could see that with any price the split is €1 (3 payments of €0.34) and not the reference price.
No error is generated, because the platform “does not fail”. It receives an amount that can be paid and therefore does not return errors in the log. The problem is that it does not charge the amount it should.
While I was reviewing all this, I did a test with the credit card and in that case it does charge the correct amount. But the form field is the same, so I don’t really know what’s going on.
Hi @efquintana
Thank you for the update
I noticed your form was exported from Forminator 1.39 and we only have 1.38.X for free https://wordpress.org/plugins/forminator/#developers, it indicates that you have the Pro version, wouldn’t you mind to create a ticket on https://wpmudev.com/hub2/support and we will check it asap, we are 24/7 and you can also open a Live Chat.
Best Regards
Patrick FreitasThe website is not mine, I’m just helping a friend, so I don’t have access to her ticket platform.
In any case, the problem is in a Stripe field (which is included in the free version) that takes the amount from a Number field (which is also included in the free version)
What’s the problem with giving a solution here?
Hello @efquintana,
I hope things are going great for you.
If they have an active subscription to WPMUDEV since they exported the form from the Pro version, it would be better to reach out directly here: https://wpmudev.com/hub2/support. Our team is available 24/7 and can proactively review the issue.
In any case, the problem is in a Stripe field (which is included in the free version) that takes the amount from a Number field (which is also included in the free version)
Previously, I tried importing the form and checking with the form you provided; however, it contains some errors. Maybe the export didn’t go well. Then, I tried clearing it from the start but couldn’t replicate the issue. Furthermore, can you redesign the same form again and see if that helps resolve the issue? I believe some settings from the form could be causing the problem.
I look forward to hearing from you soon.
–
Kind Regards,
Imran KhanHi
As I told you, I don’t have access to the ticket platform. It’s not my website, it’s not my plugin, it’s not my user to access said platform.
You say that the form has errors in some configuration. Which ones? Can you specify more? I don’t see any and the form doesn’t show any warnings either.
Start over? It’s not a form with a couple of fields, it’s quite a bit of work and starting over without even the guarantee that it will work doesn’t seem like an option to me.
I deleted and reconfigured the Stripe field, but it didn’t help.
Hi @efquintana,
I hope you are doing well today!
We have released Forminator v1.39.1 free version. Please update the plugin to its latest version and try again. Then let us know if it resolves the issue.
Kind regards,
ZaferHello.
We have removed the PRO version of Forminator and installed the latest free version so that there are no more problems with support.
In any case, I detected that the problem occurs because of the visibility rule.
Let me explain, we have a “Payment method” radio field. If the “Card” option is chosen, the Stripe field is displayed (with card payment and splitting with Klarna). If the PayPal option is chosen, the PayPal field is displayed.
When this condition is active, Klarna ALWAYS splits €1
When I remove this visibility condition, Klarna splits the amount indicated in the price field.
Ideas to make it work correctly?
it indicates that you have the Pro version
We have removed the PRO version of Forminator
That doesn’t change anything and the developer cannot support you here. They could get into real trouble if they support any customers on this site.
For pro or customer support, please contact the developer on their site. This includes pre-sales information.
As the developer is aware, customers may not be supported on this site.
https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products
Considering the above, please continue with free plugin version only support here
Hi @efquintana
I hope you are doing well.
To follow up here, as you are using the Free version and not the pro version anymore, we could speak with moderators to re-open this for you, and we will proceed with the support here.
It is important to say that as the moderator explained we are not allowed to support Pro ones, in future if your friend decides to have a new membership then you can be added as a team member https://wpmudev.com/docs/hub-2-0/users/#team-members
But moving back to the troubleshooting, could you try the following:
– Pre-check your radio field with a default value https://monosnap.com/file/UIAl20hi43rX04sqoweBtCPk0E9Nkv, now Stripe is visible out of the box because none of the options is selected
– The “Precio” field is a number field, if it is a product price it is better to use currency field https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#currency-fieldLet us know if those changes helped.
Best Regards
Patrick FreitasHi @efquintana,
Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open this thread if you need any further assistance.
Regards,
Nithin
The topic ‘Stripe doesn’t take the correct price’ is closed to new replies.