2Checkout / woocommerce

2Checkout WooCommerce Connector
MIT License
23 stars 13 forks source link

2Checkout 2Pay Api Not working #5

Closed Organd closed 3 years ago

Organd commented 3 years ago

Hello, 2Checkout 2Pay Api alwayes show "Loading, please wait..." forever

craigchristenson commented 3 years ago

Can you open your browser console and let me know if you see any errors? I was not able to replicate the issue.

Organd commented 3 years ago

JQMIGRATE: Migrate is installed, version 1.4.1 (index):136 callLightbox (index):139 https://cube.paysky.io:6006/js/LightBox.js (index):744 [Intervention] Images loaded lazily and replaced with placeholders. Load events are deferred. See https://go.microsoft.com/fwlink/?linkid=2048113 DevTools failed to load SourceMap: Could not load content for chrome-extension://fdhgeoginicibhagdmblfikbgbkahibd/sourceMap/edge/iframe_handler.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME DevTools failed to load SourceMap: Could not load content for chrome-extension://fdhgeoginicibhagdmblfikbgbkahibd/sourceMap/edge/content.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME DevTools failed to load SourceMap: Could not load content for chrome-extension://fdhgeoginicibhagdmblfikbgbkahibd/sourceMap/edge/iframe_handler.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

Organd commented 3 years ago

also why "IPN Callback Url" show http instead of https? When try to add http "IPN URLs" in 2checkout cpanel i got error, so i changed it to https. but i cant change it in woocommerce

Organd commented 3 years ago

any news?

craigchristenson commented 3 years ago

It appears that you have a bunch of errors with your theme based on those error logs which are outside of this plugin. Are you experiencing the same issue on the default woocommerce theme?

cgdmohamed commented 3 years ago

same issue with default theme

Uncaught Error: Window did not load after 5000ms at mt (2pay.js?ver=5.5.3:1) at 2pay.js?ver=5.5.3:1 at Function.t.try (2pay.js?ver=5.5.3:1) at Module.t (2pay.js?ver=5.5.3:1) at i.value (2pay.js?ver=5.5.3:1) at i.value (2pay.js?ver=5.5.3:1) at prepareTwoPayJs (twocheckout.js?ver=5.5.3:135) at isDomReadyFor2PayJs (twocheckout.js?ver=5.5.3:66) at twocheckout.js?ver=5.5.3:63

craigchristenson commented 3 years ago

Ok interesting i have been unable to replicate. Can you send a screenshot of your browser console on the default theme as well?

On Tue, Nov 10, 2020, 2:39 PM cgdmohamed notifications@github.com wrote:

same issue with default theme

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/2Checkout/woocommerce/issues/5#issuecomment-724922810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5MZLT4DJO2MTKNLLMJWTSPGJG7ANCNFSM4TJFHGBQ .

cgdmohamed commented 3 years ago

Ok interesting i have been unable to replicate. Can you send a screenshot of your browser console on the default theme as well? On Tue, Nov 10, 2020, 2:39 PM cgdmohamed @.***> wrote: same issue with default theme — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5MZLT4DJO2MTKNLLMJWTSPGJG7ANCNFSM4TJFHGBQ .

Here you https://pasteboard.co/JzL5zUB.png

craigchristenson commented 3 years ago

Thank you that is helpful.

On Tue, Nov 10, 2020, 2:54 PM cgdmohamed notifications@github.com wrote:

Ok interesting i have been unable to replicate. Can you send a screenshot of your browser console on the default theme as well? … <#m5841170234735292214> On Tue, Nov 10, 2020, 2:39 PM cgdmohamed @.***> wrote: same issue with default theme — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#5 (comment) https://github.com/2Checkout/woocommerce/issues/5#issuecomment-724922810>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5MZLT4DJO2MTKNLLMJWTSPGJG7ANCNFSM4TJFHGBQ .

Here you https://pasteboard.co/JzL5zUB.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/2Checkout/woocommerce/issues/5#issuecomment-724930815, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB5MZM7I3UEIZEMZ7ECQDTSPGLBBANCNFSM4TJFHGBQ .

cgdmohamed commented 3 years ago

Thank you @craigchristenson , waiting your reply.

cgdmohamed commented 3 years ago

any updates

Organd commented 3 years ago

The old one working well: https://github.com/craigchristenson/woocommerce-2checkout-api

craigchristenson commented 3 years ago

We confirmed thats this is and issue with the 2Checkout 2PayJS product not this payment plugin. We are working on a fix internally and I will update you when it has been corrected.

Organd commented 3 years ago

Thank you so much

cgdmohamed commented 3 years ago

The old one working well: https://github.com/craigchristenson/woocommerce-2checkout-api

didn't work for me

cgdmohamed commented 3 years ago

We confirmed thats this is and issue with the 2Checkout 2PayJS product not this payment plugin. We are working on a fix internally and I will update you when it has been corrected.

thank you very much, i really waiting this problem fixed asap because my personal business depends on this.

cgdmohamed commented 3 years ago

i hope you are working on this case

artmization commented 3 years ago

Hello same issue i am facing"Loading, please wait...". Please Resolve this issue ASAP. Many thanks

quantumleap33 commented 3 years ago

Same problem here. Cannot use 2checkout payment with WooCommerce!

nobel0 commented 3 years ago

@craigchristenson
Having the same problem with one of my sites.. Where the other is working quite good, i mean by that is at first load it will show the form, but when i toggle to paypal and come back to 2co it will hang and just say loading. I tried to uninstall wp rocket but it seems the issue persists...

Both of them are using Astra theme,,, so this is something as u said inside of 2PAYJS..

Thanks

nobel0 commented 3 years ago

Hello dears,

Just to update you guys, i have talked with Mr. @craigchristenson and he said that the 2co developers are working on the 2payjs to get it solved, when it gets fixed he will update us here in the forum.

I hope they can fix it soon. I am sooo excited to use the new plugin, it will rocket my conversion for sure :)

Good luck guys

cgdmohamed commented 3 years ago

Hello dears,

Just to update you guys, i have talked with Mr. @craigchristenson and he said that the 2co developers are working on the 2payjs to get it solved, when it gets fixed he will update us here in the forum.

I hope they can fix it soon. I am sooo excited to use the new plugin, it will rocket my conversion for sure :)

Good luck guys

Thank you, we're waiting

nobel0 commented 3 years ago

Hello dears, @cgdmohamed , @quantumleap33 , @Organd...

Good news! I have talked with Mr. Craig and he told me that they found a workaround to resolve the issue. they are currently waiting on the QA testing, and it should be done this week.

I hope it will turn out all okay.. Thanks & Good luck

Organd commented 3 years ago

Hello dears, @cgdmohamed , @quantumleap33 , @Organd...

Good news! I have talked with Mr. Craig and he told me that they found a workaround to resolve the issue. they are currently waiting on the QA testing, and it should be done this week.

I hope it will turn out all okay.. Thanks & Good luck

That is good news, Thank you so much for updating us

craigchristenson commented 3 years ago

Thank you for your patience with this. We pushed a fix to the release branch which should provide a work around for the issue. https://github.com/2Checkout/woocommerce/tree/release In testing this change resolved the issue for us on all slow connections. Please lets me know if this resolves the issue for you.

nobel0 commented 3 years ago

Thank you for your patience with this. We pushed a fix to the release branch which should provide a work around for the issue. https://github.com/2Checkout/woocommerce/tree/release In testing this change resolved the issue for us on all slow connections. Please lets me know if this resolves the issue for you.

Thanks a lot for the efforts sir.

I am getting errors, one of them is this: Uncaught SyntaxError: Identifier 'seller_id' has already been declared

image

The seller id is typed correctly and tried to remove it and re-enter it, but didnt help..

Btw, i think the timeout is still having problem, coz it still saying loading, please wait. << When i tried to change the timeout to 5000ms and 2500ms it worked somehow for desktops but in mobile it needs couple of page refreshes...

Maybe it is a cache problem? I tried to disable all caches i have including server caches by cloudways..

So sorry to give this issue ^^ Thanks

craigchristenson commented 3 years ago

Thank you for your patience with this. We pushed a fix to the release branch which should provide a work around for the issue. https://github.com/2Checkout/woocommerce/tree/release In testing this change resolved the issue for us on all slow connections. Please lets me know if this resolves the issue for you.

Thanks a lot for the efforts sir.

I am getting errors, one of them is this: Uncaught SyntaxError: Identifier 'seller_id' has already been declared

image

The seller id is typed correctly and tried to remove it and re-enter it, but didnt help..

Btw, i think the timeout is still having problem, coz it still saying loading, please wait. << When i tried to change the timeout to 5000ms and 2500ms it worked somehow for desktops but in mobile it needs couple of page refreshes...

Maybe it is a cache problem? I tried to disable all caches i have including server caches by cloudways..

So sorry to give this issue ^^ Thanks

Thanks for the feedback man. We will try to find a better workaround. Sounds like in the meantime increasing the timeout should help to resolve the issue. I'm investigating now and will report back soon.

craigchristenson commented 3 years ago

Thank you for reporting this issue. This has been resolved in the latest release 1.2.0. Please make sure that you setup your IPN URL again after installing as it has changed in version 1.2.0.

nobel0 commented 3 years ago

Thanks Mr. @craigchristenson ... It is working nicely.. This is impressive and finally the best look/css is included 👍 Thanks soooo much for the efforts guys.

Have a good day. Best Regards

Mineslu commented 3 years ago

Hello there, I have already managed to install and activate "Convert-Plus Checkout" and "inline Checkout". But I have the same problem to integrate "2PayJS / API". In Woocomerce's name field put this:

Captura de Pantalla 2021-08-23 a la(s) 08 29 58

And in the form of the cards this:

Captura de Pantalla 2021-08-23 a la(s) 08 31 11

But I get this problem: Payment error:The provided currency [USD] is not supported with this card type. Supported currencies: []

NOTE: The type of currency that I am using for both my products as well as for 2CO is USD.

Greetings

nobel0 commented 3 years ago

266 / 5000 Resultados de traducción Hello there, I have already managed to install and activate "Convert-Plus Checkout" and "inline Checkout". But I have the same problem to integrate "2PayJS / API". In Woocomerce's name field put this:

Captura de Pantalla 2021-08-23 a la(s) 08 29 58

And in the form of the cards this:

Captura de Pantalla 2021-08-23 a la(s) 08 31 11

But I get this problem: Payment error:The provided currency [USD] is not supported with this card type. Supported currencies: []

NOTE: The type of currency that I am using for both my products as well as for 2CO is USD.

Greetings

Hi dear,

This is because now they are no longer accepting credit cards payment process thro them,, they alternatively provide it thro paypal credit card,, i have received an email about this last month i think.. i contacted Mr. Craig, but still waiting for his experience with this..

U can now use convert plus or the popup ONLY.

Good luck

Mineslu commented 3 years ago

Ohh great data, thank you very much. 2Checkout should explain that it no longer works with 2Pay. There is still a lot of information from 2co about this integration:

https://knowledgecenter.2checkout.com/API-Integration/2Pay.js-payments-solution/2Pay.js-Payments-Solution-Integration-Guide/Place-orders-via-API-using-a-2Pay.js-token

Thank