Page 1 of 1

2checkout integration problems

Posted: Fri Apr 23, 2021 10:08 am
by jrunique
Opencart version Version: 3.0.3.2

2checkout extension and installation instructions: https://knowledgecenter.2checkout.com/S ... -2Checkout
And the github: https://github.com/2Checkout/opencart-2checkout

I have been attempting to integrate opencart and 2checkout for some time now. I have installed and re-installed the extension multiple times and followed all installation instructions exactly. 2checkout is not receiving a reply to the IPN notification and it's saying that I have slow slow responding web hooks? As a result I receive payment but the order is not processed by opencart and it ends up as order missing status.

Warning errors on 2checkout...

Instant Payment Notification failed! 2Checkout system failed to receive a valid reply to the IPN notification sent for the following orders:

And...

Our system detected that you have slow responding web hooks.
Over the past 3 hours the URL https://www.xxxxxxx.com/index.php?route ... _cplus/ipn is FAILING to respond to our calls.
This can create IPN/LCN delivery delays.

2checkout support replied with the following message:

"After debugging your IPN, it seems that the OpenCart endpoint you have set outputs a HTTP/1.1 500 Internal Server Error.

This means that the error is not on 2Chekout side, our webhook is attempting to send the order data, however the OpenCart endpoint https://www.xxxxxxx.com/index.php?route ... _cplus/ipn does not seem to respond properly.

I suggest attempting to contact OpenCart on this matter."

Any help would be greatly appreciated.

Re: 2checkout integration problems

Posted: Fri Apr 23, 2021 11:14 am
by Cue4cheap
When you put the ipn link into your web browser what do you get?
Do you see any errors in your error log; both opencart and weblogs?

Mike

Re: 2checkout integration problems

Posted: Fri Apr 23, 2021 12:00 pm
by jrunique
Thank you for your reply.

When I load https://www.xxxxxx.com/index.php?route= ... _cplus/ipn all I get is a blank page. I don't see any error in the opencart log either. And 2checkout has the same notification: "Over the past 3 hours the URL https://www.xxxxxx.com/index.php?route= ... _cplus/ipn is FAILING to respond to our calls

Re: 2checkout integration problems

Posted: Fri Apr 23, 2021 4:33 pm
by ADD Creative
You need to check the PHP or server error log.

Re: 2checkout integration problems

Posted: Fri Apr 23, 2021 5:35 pm
by jrunique
Unfortunately I don't see anything in the server logs after refreshing https://www.xxxxxx.com/index.php?route= ... _cplus/ipn multiple times.

Re: 2checkout integration problems

Posted: Fri Apr 23, 2021 6:08 pm
by ADD Creative
Do you see the request to /index.php?route=extension/payment/twocheckout_cplus/ipn in your web access log? If so what is the status code?

Re: 2checkout integration problems

Posted: Sat Apr 24, 2021 12:21 pm
by jrunique
I refreshed /index.php?route=extension/payment/twocheckout_cplus/ipn several times and these are the request in the access logs:

16X.xxx.xx.196 - - [23/Apr/2021:05:19:49 -0700] "POST /index.php?route=extension/payment/twocheckout_cplus/ipn HTTP/1.0" 500 - "-" "GKD_IPN v1.2"
16X.xxx.xx.196 - - [23/Apr/2021:05:20:15 -0700] "POST /index.php?route=extension/payment/twocheckout_cplus/ipn HTTP/1.0" 500 - "-" "GKD_IPN v1.2"
16X.xxx.xx.196 - - [23/Apr/2021:05:20:23 -0700] "POST /index.php?route=extension/payment/twocheckout_cplus/ipn HTTP/1.0" 500 - "-" "GKD_IPN v1.2"

Re: 2checkout integration problems

Posted: Sat Apr 24, 2021 6:43 pm
by ADD Creative
They are all 500 error statuses so there should be a error log entry for them somewhere. Probably best to ask your host.