craigchristenson / woocommerce-2checkout-api

2Checkout Payment API WooCommerce Payment Module
MIT License
57 stars 43 forks source link

ISSUE - Double Payment #21

Closed sditrapani closed 7 years ago

sditrapani commented 7 years ago

Thanks for creating this, it is much appreciated.

One problem that I have experienced is:

customer enters delivery info and credit card info all fields on delivery info and credit card info go blank (while it is loading the authorisation) customer enters their info again > double payment now happens

Is it possible to have a 'loading wheel' type effect happen whilst authorisation is happening to let the customer know that the process is busy.

craigchristenson commented 7 years ago

Yes woocommerce uses the blockui jquery plugin to handle this when the final submit button is clicked so that animation should be firing, I'll take a look. Please let me know what version you are using so that I can try to replicate the issue.

sditrapani commented 7 years ago

Thanks for quick reply. I'm using woocommerce version 4.7.2 and latest wp version.

Would minificaiton of CSS and JavaScript files be an issue? I am using WP Rocket and have minification and concatenation enabled.

sditrapani commented 7 years ago

PS - Update:

I turned off all minification and concatenation and 'problem' still exists.

craigchristenson commented 7 years ago

I just made a fresh install using the latest versions of woocommerce and wordpress using the default theme and the woocommerce's blockUI loading indicator is showing during the authorization process. If you want to take this offline I'll be happy to look at your site, just email the details.

sditrapani commented 7 years ago

Thanks, I've emailed you the details.

craigchristenson commented 7 years ago

Thanks but I never got an email from you. Please contact me at craigpchristenson@gmail.com with the details so I can look into this further.

sditrapani commented 7 years ago

I've sent the mail again, please let me know if you still don't receive it. Thanks again!

On Thu, 09 Feb 2017 at 5:05 AM Craig Christenson notifications@github.com wrote:

Thanks but I never got an email from you. Please contact me at craigpchristenson@gmail.com with the details so I can look into this further.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/craigchristenson/woocommerce-2checkout-api/issues/21#issuecomment-278533946, or mute the thread https://github.com/notifications/unsubscribe-auth/AYMoBrBgDYhZwUv2h8lhPDQOwFmGK13Eks5raoJhgaJpZM4Lu_Lf .

craigchristenson commented 7 years ago

Thanks i got it. Looks like your theme bypasses the woocommerce default call to blockUI when the submit is clicked. I checked other payment methods and they also suffer from this. In this case I would alter the JS in your theme to use blockui as it is used in the woocommerce default checkout.js. If you need help with the work around feel free to ping me by email with the theme that needs modified and we can work on it together.