| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
X-Payments Test Transactions Failing | |||
|
|
Thread Tools |
#1
|
|||||||
|
|||||||
X-Payments Test Transactions Failing
Hi, I've been having issues with getting X-Payments to work on a Windows 2008 server (running Apache for X-Cart and IIS for another website).
There is a bug in the X-Payments module that is preventing transactions from being completed. Originally I received a "file not found" error[1] for "xpayments\lib\SoapClient.php". To fix this error, I copied the SoapClient.php file from "lib/XPay/Core/SoapClient.php" and moved it two directories up. This removed the previous error, but created a "cannot redeclare class" error[2]. I added the code `if(!class_exists('XPay_Core_SoapClient')){ ... }` to make sure the script won't try to redeclare the XPay_Core_SoapClient class, but now there's another error[3] stating that the SoapClient class isn't found. Moreover, this error is coming from the original lib\XPay\Core\SoapClient.php file and not the duplicated lib\SoapClient.php file. When changing the code so that the lib/XPay/Core/SoapClient.php file gets loaded instead of the duplicated lib/SoapClient.php file, it skips down to the same error as error [3] Something important to note is that when I was installing the X-Payments module, it would constantly throw a max execution time error after the installation script ran for more than 30 seconds. The max execution time could not be changed by editing the php.ini file or the X-Payments install.php files. [1] Fatal error: require_once(xpayments\lib\SoapClient.php): failed to open stream: No such file or directory in xpayments\top.inc.PHP53.php on line 84 Call Stack # Time Memory Function Location 1 0.0008 266984 {main}( ) ..\payment.php:0 2 0.0052 358224 XPay_Application->run( ) ..\payment.php:26 3 0.0766 1744592 XPay_Core_Dispatcher->dispatch( ) ..\Application.php:156 4 0.1055 2143856 XPay_Controller_Payment->process( ) ..\Dispatcher.php:148 5 0.4690 3606232 XPay_Core_Controller->process( ) ..\Payment.php:277 6 0.4692 3607464 XPay_Controller_Payment_Main->actionPay( ) ..\Controller.php:181 7 0.5298 4767032 XPay_Controller_Payment_Main->doPay( ) ..\Main.php:220 8 0.5305 4767488 XPay_Model_Payment->process( ) ..\Main.php:242 9 0.5387 4865024 XPay_Model_Payment->processInit( ) ..\Payment.php:1750 10 1.3470 5826800 XPay_Model_PaymentConf->processPayment( ) ..\Payment.php:1858 11 1.3542 5937824 processRequest ( ) ..\PaymentConf.php:698 12 1.3542 5938160 XPay_Model_Module->__call( ) ..\PaymentConf.php:698 13 1.3542 5938160 XPay_Model_Base_Module->__call( ) ..\Module.php:136 14 1.3542 5938576 call_user_func_array ( ) ..\Module.php:256 15 1.3542 5938896 XPay_Core_Module->processRequest( ) ..\Module.php:256 16 1.3614 6010376 XPay_Core_SoapClient->call( ) ..\Module.php:1204 17 1.3614 6018648 __autoload( ) ..\Module.php:118 [2] Fatal error: Cannot redeclare class XPay_Core_SoapClient in xpayments\lib\SoapClient.php on line 143 Call Stack # Time Memory Function Location 1 0.0008 266536 {main}( ) ..\payment.php:0 2 0.0224 357776 XPay_Application->run( ) ..\payment.php:26 3 0.0678 1744296 XPay_Core_Dispatcher->dispatch( ) ..\Application.php:156 4 0.0949 2143608 XPay_Controller_Payment->process( ) ..\Dispatcher.php:148 5 0.5312 3606008 XPay_Core_Controller->process( ) ..\Payment.php:277 6 0.5314 3607240 XPay_Controller_Payment_Main->actionPay( ) ..\Controller.php:181 7 0.8071 4766968 XPay_Controller_Payment_Main->doPay( ) ..\Main.php:220 8 0.8074 4767424 XPay_Model_Payment->process( ) ..\Main.php:242 9 0.8125 4864224 XPay_Model_Payment->processInit( ) ..\Payment.php:1750 10 1.9256 5826240 XPay_Model_PaymentConf->processPayment( ) ..\Payment.php:1858 11 1.9300 5937304 processRequest ( ) ..\PaymentConf.php:698 12 1.9300 5937640 XPay_Model_Module->__call( ) ..\PaymentConf.php:698 13 1.9300 5937640 XPay_Model_Base_Module->__call( ) ..\Module.php:136 14 1.9300 5938056 call_user_func_array ( ) ..\Module.php:256 15 1.9300 5938376 XPay_Core_Module->processRequest( ) ..\Module.php:256 16 2.0449 6009912 XPay_Core_SoapClient->call( ) ..\Module.php:1204 17 2.0449 6018184 __autoload( ) ..\Module.php:118 [3] ( ! ) Fatal error: Class 'SoapClient' not found in xpayments\lib\XPay\Core\SoapClient.php on line 118 Call Stack # Time Memory Function Location 1 0.0006 266984 {main}( ) ..\payment.php:0 2 0.0037 358224 XPay_Application->run( ) ..\payment.php:26 3 0.0466 1744592 XPay_Core_Dispatcher->dispatch( ) ..\Application.php:156 4 0.0612 2143856 XPay_Controller_Payment->process( ) ..\Dispatcher.php:148 5 0.5048 3606232 XPay_Core_Controller->process( ) ..\Payment.php:277 6 0.5050 3607464 XPay_Controller_Payment_Main->actionPay( ) ..\Controller.php:181 7 0.8408 4767032 XPay_Controller_Payment_Main->doPay( ) ..\Main.php:220 8 0.8411 4767488 XPay_Model_Payment->process( ) ..\Main.php:242 9 0.8465 4861104 XPay_Model_Payment->processInit( ) ..\Payment.php:1750 10 2.0808 5823072 XPay_Model_PaymentConf->processPayment( ) ..\Payment.php:1858 11 2.0946 5934112 processRequest ( ) ..\PaymentConf.php:698 12 2.0946 5934448 XPay_Model_Module->__call( ) ..\PaymentConf.php:698 13 2.0947 5934448 XPay_Model_Base_Module->__call( ) ..\Module.php:136 14 2.0947 5934864 call_user_func_array ( ) ..\Module.php:256 15 2.0947 5935184 XPay_Core_Module->processRequest( ) ..\Module.php:256 16 2.1494 6006664 XPay_Core_SoapClient->call( ) ..\Module.php:1204
__________________
Version 4.6.1 X-Payments v2.x |
|||||||
#2
|
|||||||||
|
|||||||||
Re: X-Payments Test Transactions Failing
First of all X-Payments is not supposed to be run on a Windows server. See http://help.x-cart.com/index.php?title=X-Payments:System_requirements
Quote:
Second - I do not think absence of a file is a bug. It seems to be incomplete upload of X-Payments files onto your server. Also, you should not modify X-Payments files as it may lead to loss of PA-DSS certification status for your copy of X-Payments.
__________________
Sincerely yours, Alex Mulin VP of Business Development for X-Cart X-Payments product manager |
|||||||||
|
|||
X-Cart forums © 2001-2020
|