X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   2Checkout reports all sales failed even when 2 checkout cleared (https://forum.x-cart.com/showthread.php?t=68892)

xanadude 03-19-2014 11:35 AM

2Checkout reports all sales failed even when 2 checkout cleared
 
As per the title

no matter what I do placing payment through 2 checkout it always reports back to the store as a failure.

Even though everything is good in 2 checkout and the payment has cleared?

I have been on 2co support and they say all is configured ok.

help please

qualiteam 03-19-2014 09:10 PM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Does this happen with your XC4, or XC5 store?

Are there any errors in logs?

xanadude 03-20-2014 12:20 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
x5 store I dont have 2co in the x4 one

tony_sologubov 03-20-2014 03:51 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Do you have any error messages in the var/log folder?

xanadude 03-20-2014 05:32 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
I will take a look when home but I dont recollect seeing any when investigating last night. it was late :)

xanadude 03-20-2014 02:19 PM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Hi Tony

I have deleted log files in var to get fresh and the only files that appear are

xlite.log.2014-03-20.php
content is
<?php die(1); ?>

and

php_errors.log.2014-03-20.php

content
<?php die(1); ?>

where should I look next
thanks

xanadude 03-24-2014 07:02 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Any update on why this wont work guyts , I have checked as much as possible with 2co and still every order that goes through shows failed on the store even though passing on 2co

xanadude 03-26-2014 02:04 PM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
still not working help please as want to be able to push the store live a shutdown the old store very shortly

thanks

Ruslan 03-27-2014 10:58 PM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Hi xanadude!

Can you please check the reason of failed status? You can find it on the "History" tab on the order details page. http://awesomescreenshot.com/0722k9c93a

If the reason is "Verification: MD5 verification failed" please check that you entered the right "Secret word" on the payment configuration page.

xanadude 03-28-2014 12:40 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
This is the history for one of the failed tests

19/03/2014
18:59Email sent to the customer
>>>
18:59Email sent to the admin
>>>
18:59Email sent to the admin
>>>
18:59Email sent to the customer
>>>
18:59Payment transaction [method: 2Checkout.com, type: sale, amount: 1, status: Failed] [web]
>>>
18:59Order status changed from Incompleted to Failed
18:59[Inventory] Return back to stock: "TEST" product amount in stock changes from "999" to "1000" (1 items)
18:58Order placed
18:58Payment transaction [method: 2Checkout.com, type: sale, amount: 1, status: In progress]
18:58Order status changed from Cart to Incompleted
18:58[Inventory] Removed from stock: "TEST" product amount in stock changes from "1000" to "999" (1 items)

qualiteam 03-28-2014 12:42 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Please click the ">>>" for the "18:59 Payment transaction [method: 2Checkout.com, type: sale, amount: 1, status: Failed] [web]" line - this should show more information on the issue.

xanadude 03-28-2014 12:53 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
ok will check it as soon as I get in this evening
much appreciated

xanadude 03-28-2014 01:09 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
it is MD5 but the secret words are Identical

qualiteam 03-28-2014 01:59 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
If you copy&pasted the secret word, it could add extra characters (like line-ending) to it. Try to enter the secret word letter by letter.

xanadude 03-28-2014 02:10 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
I have typed them both in manually at both ends no extra characters or spaces

xanadude 03-28-2014 02:11 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
I will try again

Ruslan 03-28-2014 02:38 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
1 Attachment(s)
We made some fixes.
Please try to replace your classes/XLite/Module/CDev/TwoCheckout/Model/Payment/Processor/TwoCheckout.php file with the TwoCheckout.php in the attachments (make backup of the original file before the replacement).

Also we add logs for 2co. Make developer_mode = on in your etc/config.php file. Place order with 2co and check your var/log folder. There should be log files for TwoCheckout. Please, share logs with us.

xanadude 03-28-2014 06:59 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
OK Tried all this and still no luck - developer mode turned on.... DO I need to refresh the Cache to get it active ?

Ruslan 03-28-2014 07:04 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Quote:

OK Tried all this and still no luck - developer more turned on.... DO I need to refresh the Cache to get it active ?

Yes, I forgot to notice it.

xanadude 03-28-2014 07:21 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
OK this is the log from 2 checkout file

<?php die(); ?>
[08:17:17.000000] array (
'fields' =>
array (
'sid' => '[EDITED BY FORUM MODERATOR] ',
'total' => '1.00',
'cart_order_id' => 34,
'merchant_order_id' => 'WeMake-20140000024',
'pay_method' => 'CC',
'lang' => 'en',
'skip_landing' => '1',
'card_holder_name' => '[EDITED BY FORUM MODERATOR]',
'street_address' => '[EDITED BY FORUM MODERATOR]',
'city' => '[EDITED BY FORUM MODERATOR]',
'state' => 'XX',
'zip' => '[EDITED BY FORUM MODERATOR]',
'country' => 'GB',
'email' => '[EDITED BY FORUM MODERATOR]',
'phone' => '[EDITED BY FORUM MODERATOR]',
'fixed' => 'Y',
'id_type' => '1',
'sh_cost' => '0.00',
'ship_name' => '[EDITED BY FORUM MODERATOR]',
'ship_street_address' => '[EDITED BY FORUM MODERATOR]',
'ship_city' => '[EDITED BY FORUM MODERATOR]',
'ship_state' => 'XX',
'ship_zip' => '[EDITED BY FORUM MODERATOR]',
'ship_country' => 'GB',
'c_prod' => '130,1',
'c_name' => 'TEST',
'c_price' => '1.00',
'c_description' => 'test',
),
)
Runtime id: 60d283180776d9c54c6ab14abfbbf357
SAPI: cgi-fcgi; IP: 94.72.249.26
URI: /shop2014/?target=checkout

[08:17:17.000000] array (
'fields' =>
array (
'sid' => '[EDITED BY FORUM MODERATOR] ',
'total' => '1.00',
'cart_order_id' => 34,
'merchant_order_id' => 'WeMake-20140000024',
'pay_method' => 'CC',
'lang' => 'en',
'skip_landing' => '1',
'card_holder_name' => '[EDITED BY FORUM MODERATOR]',
'street_address' => '[EDITED BY FORUM MODERATOR]',
'city' => '[EDITED BY FORUM MODERATOR]',
'state' => 'XX',
'zip' => '[EDITED BY FORUM MODERATOR]',
'country' => 'GB',
'email' => '[EDITED BY FORUM MODERATOR]',
'phone' => '[EDITED BY FORUM MODERATOR]',
'fixed' => 'Y',
'id_type' => '1',
'sh_cost' => '0.00',
'ship_name' => '[EDITED BY FORUM MODERATOR]',
'ship_street_address' => '[EDITED BY FORUM MODERATOR]',
'ship_city' => '[EDITED BY FORUM MODERATOR]',
'ship_state' => 'XX',
'ship_zip' => '[EDITED BY FORUM MODERATOR]',
'ship_country' => 'GB',
'c_prod' => '130,1',
'c_name' => 'TEST',
'c_price' => '1.00',
'c_description' => 'test',
),
)
Runtime id: 60d283180776d9c54c6ab14abfbbf357
SAPI: cgi-fcgi; IP: 94.72.249.26
URI: /shop2014/?target=checkout

[08:18:04.000000] array (
'request' =>
array (
'target' => 'payment_return',
'middle_initial' => '',
'sid' => '[EDITED BY FORUM MODERATOR]',
'fixed' => 'Y',
'cart_weight' => '0',
'key' => '[EDITED BY FORUM MODERATOR]',
'state' => 'XX',
'last_name' => '[EDITED BY FORUM MODERATOR]',
'email' => '[EDITED BY FORUM MODERATOR]',
'city' => '[EDITED BY FORUM MODERATOR]',
'street_address' => '[EDITED BY FORUM MODERATOR]',
'cart_order_id' => '34',
'order_number' => '[EDITED BY FORUM MODERATOR]',
'ip_country' => 'United Kingdom',
'country' => 'GBR',
'merchant_order_id' => 'WeMake-20140000024',
'cart_id' => '34',
'currency_code' => 'GBP',
'lang' => 'en',
'demo' => 'N',
'invoice_id' => '[EDITED BY FORUM MODERATOR]',
'pay_method' => 'CC',
'cart_tangible' => 'N',
'total' => '1.00',
'phone' => '[EDITED BY FORUM MODERATOR]',
'credit_card_processed' => 'Y',
'zip' => '[EDITED BY FORUM MODERATOR]',
'street_address2' => '',
'first_name' => '[EDITED BY FORUM MODERATOR]',
'card_holder_name' => '[EDITED BY FORUM MODERATOR]',
),
)
Runtime id: e6277d422d46ff316753471b29f4d6de
SAPI: cgi-fcgi; IP: 64.128.115.196
URI: /shop2014/cart.php

[08:18:04.000000] array (
'non_crypt_calculated' => '[EDITED BY FORUM MODERATOR]',
)
Runtime id: e6277d422d46ff316753471b29f4d6de
SAPI: cgi-fcgi; IP: 64.128.115.196
URI: /shop2014/cart.php

[08:18:04.000000] array (
'crypt_calculated' => '3146F4740A16287D39637FF938B832CB',
)
Runtime id: e6277d422d46ff316753471b29f4d6de
SAPI: cgi-fcgi; IP: 64.128.115.196
URI: /shop2014/cart.php


thanks

Ruslan 03-28-2014 07:43 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Ok, I see. You entered "2Checkout.com account number" with space at the end 'sid' => '[EDITED BY FORUM MODERATOR] '. Just remove this space.

Sorry for inconvenience. We will fix it.

You should return your original TwoCheckout.php file and switch off developer_mode.

xanadude 03-28-2014 08:09 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
working thank you very much

xplorer 03-29-2014 03:59 AM

Re: 2Checkout reports all sales failed even when 2 checkout cleared
 
Hi guys!

I've edited your messages and removed all private information.

Please do not post such information in these public forums and use Private Messages instead.

Thanks!


All times are GMT -8. The time now is 08:06 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.