Closed rhyswynne closed 9 years ago
I confirm that checkout page seems slow. But I have no data at the moment how slow and why.
It happened to me as well (checkout being extremely slow). I am in the process of hiring a guy I know well on Freelancer to look into for me. We have a lot of European customers so this plugin has to work. I experimented a little with my two payment methods PayPal and Credit Cards (via authorize.net) and it seemed to be an issue with the PayPal standard although I did NOT test it nearly to confidently say that is it. It could be anything.
It seems that the edd_get_cart_tax
filter is called a lot on the checkout page (by EDD). Since the Taxamo integration hooks into that filter to make the API call, it's getting called over and over. I'm digging in now to see if this is intended behaviour.
The latest commit (bf8e833f9db6bbd6ad6d726be05fdfbbc877c4e1) fixed a few issues with #22 should the country code be changed during checkout.
Nice catch! I've just tested your fix now and couldn't see any problems. Nice and snappy checkout flow.
I just tried to process a refund and got a PHP Warning:
Warning: Invalid argument supplied for foreach() in /home/themes/public_html/wp-content/plugins/taxamo-edd-integration/taxamo-edd-integration.php on line 776
Note that my copy is slightly out of date with master. It's pointing at what is now line 786.
foreach ( $taxamo_transaction_lines as $taxamo_transaction_line ) {
This refund was for a payment without any Taxamo transaction info, so probably need to check the transactions that taxamo is returning there. I'm into something else at the moment so can't look into this right away.
ps - the refund still went through fine (though I doubt the Taxamo portion would have if there was anything to refund there).
I'll take a look at this tonight :)
I am happy this is fine, so I'm closing this.
We were having issues with the checkout being slow. We think we've got all the issues, but if anybody else spots this, please let me know.