Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

x-payments config - proxy settings

 
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions
 
Thread Tools
  #11  
Old 06-20-2012, 07:21 AM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default Re: x-payments config - proxy settings

This command:

php '''regen-codebook.php''' -run <'''public_html/xpayments'''

consists of the following parts:

1) "php" - is the PHP binary file. You should use the PHP 5.3. binary with the necessary extensions installed (i.e. so that it meets the X-Payments system requirements). Possibly you'll need to run it with the -c path_to_php.ini_file option.

Contact your hosting to verify which PHP binary and ini file should be used.

2) "regen-codebook.php" is the name of the execuring PHP script. Since only file name is used, it's considered that you've already are in the directory where X-Payments is installed. Otherwise you may use the full server path to this file.

3) "-run" specifies that the regeneration should be preformed.

4) "public_html/xpayments" should be the full server path of the X-Payments directory. You may get it executing the pwd command via shell.



If you find it difficult to construct the command line yourself we advise you to contact support through HelpDesk: https://secure.qtmsoft.com
__________________
joss@x-cart.com
Reply With Quote

The following 2 users thank joss for this useful post:
ambal (06-20-2012), photo (06-20-2012)
  #12  
Old 06-20-2012, 10:14 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: x-payments config - proxy settings

Thank you Joss, I appreciate you taking the time to respond.
Moving on from this to installing the x-payments-connector-for-X-Cart-4.0.x-4.2.x on Xcart v4.1.10, I get the following text at the top of the page in the admin and the store front end, when applying the patch_4_1_12.diff


Code:
define('XC_TIME', time()); define('X_PAYMENT_TRANS_ALREADY_CAPTURED', 1); define('X_PAYMENT_TRANS_ALREADY_VOIDED', 2); define('X_PAYMENT_TRANS_ALREADY_REFUNDED', 4); define('X_PAYMENT_TRANS_ALREADY_ACCEPTED', 8); define('X_PAYMENT_TRANS_ALREADY_DECLINED', 16); define('PAYMENT_NEW_STATUS', 1); define('PAYMENT_AUTH_STATUS', 2); define('PAYMENT_DECLINED_STATUS', 3); define('PAYMENT_CHARGED_STATUS', 4); define('X_USE_PAYPAL_FLOW', true);

Any idea what would cause this?

Thanks
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #13  
Old 06-20-2012, 10:26 AM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default Re: x-payments config - proxy settings

There is a bug in the internal X-Cart patching system, the code is being added to the end of the file (in other cases it works corectly).



You should modify the <xcart-dir>/top.inc.php file in such a way, that the closing tag:

?>

is the last line of the file. Note: there shouldn't be any spaces or line brakes after this tag.

Besides, please make sure you've removed the "?>" tag which is prior the code you see on the pages.
__________________
joss@x-cart.com
Reply With Quote

The following 2 users thank joss for this useful post:
ambal (06-20-2012), photo (06-20-2012)
  #14  
Old 06-20-2012, 10:46 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: x-payments config - proxy settings

Excellent! Worked like a charm, thanks a lot Joss
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
  #15  
Old 06-22-2012, 06:33 PM
 
gblair gblair is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 69
 

Default Re: x-payments config - proxy settings

Finally got regen-codebook to work.
In order to call the CLI version of PHP I couldn't just type PHP regen-codebook.php -run etc

I had to type:

/ramdisk/php/53/bin/php5-cli regen-codebook.php -run etc

Like I would have been able to work that out myself.
__________________
paperwhimsy.com
Gale Blair
4.1.10
Reply With Quote

The following user thanks gblair for this useful post:
ambal (06-24-2012)
Reply
   X-Cart forums > X-Payments > X-Payments issues & questions


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:35 AM.

   

 
X-Cart forums © 2001-2020