kubadrex
Forum Replies Created
-
I have sent over the logs data using the form on your website. My ticket number is 71666. I have also put the URL to this ticket in my email, so you should be able to identify it easily.
Thank you!
Hello, thanks.
I have requested that information from the client and will get back to you once it will be provided to me.
Thanks
Forum: Plugins
In reply to: [Stripe Payment Plugin for WooCommerce] Klarna – status order not changedthat helped – thank you so much!
For the people that will read this task in the future – the webhook secret that you need to use can be obtained by going to Stripe Dashboard > Developers > Webhooks > select your desired webhook now > Signing secret > Reveal
I have played a bit with the source code /plugins/woocommerce-gateway-stripe/assets/js/stripe-payment-request.js for debugging pursposes and as far as I can see, the shippingAddress is for some reason always empty, so it looks like it is not read from the card details. I have checked it for Apple Pay and the problem is the same – script is not passing any data for the shippingAddress. I have checked that within the updateShippingOptions method – address variable got empty data for addressLine property.
For me this is clearly the root of the problem but I’m not sure why the script is not able to get the addressLine if all the other data is fetched correctly. I have checked that on another device as well, same for Google and Apple Pay – always addressLine is the problem.
Hello @anastas10s,
should the “Payment” be marked as “enabled” when using the test mode? https://ibb.co/wwGQ5sx I’m not sure about this one.
For example, test credit card payment is working without problems for us using your plugin. I can also see that CC and Google Pay is active for test mode in my Stripe account – https://ibb.co/2yLGDqKJust to confirm, if you try to purchase the regular way, with a credit card, you are able to complete the order, right?
Yes, there is no problem when using the checkout form and credit card payment option.
Can you please share a screenshot of what you see under WooCommerce > Settings > Payments > Stripe > Settings > Account details so we can check it?
I still think the problem is that the address line is not captured from the credit card that is stored within Google Account, thus the script is not able to calculate the shipping cost, which causes the error. I have no idea how this is possible as for testing we are using the default WordPress theme and only neccessary plugins, so there is no custom code that could mix things up.
@ckadenge please find the following with details – https://quickforget.com/s/df6ceb2b7a914778582d411d6694c45c6526796ed64038a8
Twenty Twenty-Four theme is enabled plus only Woo and payment plugins.
Hello, thanks for your reply.
While looking at your screenshot?here?it seems there’s an address saved, but it is not selected (it might just be how your theme looks). If you click on the circle next to the address does the error message persists?
It looks this way because after selecting one of the addresses, error occurs (as there is no address line 1), so this dialog box is not selecting anything as it is not valid. This is not part of my theme, this is a Google Pay dialog box.
Below you can find requested screenshots:
- WooCommerce > Settings > Shipping – https://ibb.co/kyN4hHs
- WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone – https://ibb.co/RyY2PYQ
- WooCommerce > Settings > Shipping > Click on Edit on a Shipping Zone > Click on edit on each shipping method so we can check the specific settings – https://ibb.co/phB7k84
Is it possible for you to share the website’s URL so we can also take a closer look?
I’m okay with that but I would not like to reveal it here on public board – is it a way to do it privately?
Thanks
From what I gather, the reported issue, with the wrong total price in the Google Pay pop-up window, inconsistently appears on the site, when a shipping option, an address, or the selected Google Account change. Am I getting this?
The issue is that sometimes on the account change, the shipping option is shown as “Pending”, even though it looks like the request got the correct available options, but the shipping stays as “Pending” within the dialog box.
System status – https://pastebin.com/mGmbthYw
There are some plugins that needs update, but as it can be seen in this thread, we also experienced this problem when everything was up to date.Additionally, fresh screenshots of the tax, and shipping, settings would be necessary.
Lately I have installed the https://woo.com/products/tax/ as sugessted, as we experienced problems with tax & Google Pay as well, but I want to solve the shipping issue first.
https://ibb.co/jZX33wP
https://ibb.co/sH7JnNJ
https://ibb.co/Ykg2ByhHello, I’d like to come back to this topic. I have made further testing and I can see an issue with the shipping options within the Google Pay dialog. My website got two flat rate options for US, we do not ship to other countries.
On the initial load, everything seems fine, but the problem starts when I start changing options, account specifically. My test has been made on the Twenty Twenty-Two theme on default Woo templates, to minimize the influence of the custom solutions.
First, after the initial load I press the “Buy with GPay” button on my checkout page (I’m using it only on that page), shipping cost is correctly displayed: https://ibb.co/WyP7Mbp
Then I’m changing the account in the first select to use another one and the shipping option is “pending” https://ibb.co/kqs0FFF. Even when I change the shipping address to a different one (to kinda “retrigger” calculation), the problem persists https://ibb.co/jT339fr. What’s interesting, the price displayed contains the shipping cost for all that time.
Checking the request that is being sent, looks like the response contains the correct data – https://ibb.co/5cr2KgK, so it’s even more interesting.
The issue is really inconsistent – sometimes I’m not able to make it work but another time it seems to be displaying the shipping price correctly.
Yes, it is possible. WooCommerce provides several hooks and filters that you can use to customize the tax calculation process. However, please note that this requires a good understanding of PHP and WordPress hooks/filters.
This is not a problem, I’m developer with WordPress experience, so feel free to share with me some technical details as well.
Are you aware that the hook/filter that you have mentioned will allow me to get the shipping address that the user put within the GooglePay dialog box? This dialog box is not a part of the website checkout form, so I’m not sure if such data is accessible using any hook/filter.
Is there another tax plugin that is confirmed to be working with your plugin? Or anything that you can recommend as an alternative?
Thanks
Hello,
I have disabled Avalara and looks like this is solving the issue as now I’m able to freely change the shipping address and the tax is always calculated. I have experienced once a problem with the shipping option though, but when I have changed the address it populated correctly.
Besides of this shipping issue that sometimes occur, I’m wondering if it is possible to use some hook/filter to do some custom logic before passing the tax amount from Woo to the Stripe plugin/Google Pay? In worst case, we can consider changing the tax plugin, but we would like to stay with Avalara if possible. If there is a possibility to apply some custom logic, maybe I will be able to fix this issue with some extra code.
Could you confirm if this issue occurs when using express checkout options on the cart or checkout pages?
We are using it only on the checkout page. I have checked it on the Cart page but the result is the same.
Can you share some screenshots of your shipping settings in WooCommerce → Settings → Shipping?
I have updated WordPress, Woo and Stripe plugin now. Tested but I can see the same issues occurs – sometimes it is working correctly and sometimes it does not.
I also noticed another strange behavior, where the shipping cost is visible in the Google Pay dialog box, but it is not included in the total price:
I’m attaching the logs:
- System status – https://pastebin.com/gH1KTAGa
- Error log – https://pastebin.com/JJfnK2nE
Hello Zubair, thanks for your reply.
- System status – https://pastebin.com/0vyaeUy0
- Error log
- December 22 – https://pastebin.com/hscR8VzP
- December 21 – https://pastebin.com/xZPiZpz8