Authorize vs Capture CC paypal_payflow_pro by Brian Burton

Brian Burton with has done a great job on the paypal_payflow_pro module.  One thing I noticed is that it does not give us the option to do a credit card authorize vs. a credit card sale (which is an authorize and capture together).  I thought about adding this feature to is module but time does not allow so I just wanted to provide a quick work around.

Find this line of code:

        ‘TRXTYPE’          => ‘S’,  Changed from Authorize to Sale By CVB 2/27/2009

and replace it with this 

        ‘TRXTYPE’          => ‘A’,

Paypals documentation says the following:

“According to card association rules, most physical goods merchants should use a two-step
process, since settlement should occur when the goods are fulfilled or shipped.”

So really this is correct for product shipping businesses.  If you are selling digital products then your products are usually delivered immediatly so there will be no problem doing a S, sale transaction.

Cant get SSL to work with oscommerce

I spent the better part of a day working on the problem of oscommerce not using the SSL certificate at the appropriate time.  I already had the SSL certificate installed properly.  I visited the confige.php until I had it memorized, you can test me.  My server, IIS on an HSphere cluster, worked fine with the standard install on application_top.php of
$request_type = (getenv(‘HTTPS’) == ‘on’) ? ‘SSL’ : ‘NONSSL’;
so I did not need to change it to
$request_type = (getenv(‘HTTP_X_FORWARDED_HOST’) == ‘ssl.perfora.net’) ? ‘SSL’ : ‘NONSSL’;

But no matter what I did I could not get the ssl to work.  I gave up.  That takes alot, but I gave up.  I was later working on another issue when I relized that the config.php file I had memorized had the wrong database information.  How is that possible you ask??  Because there is another config.php file in the includes/local folder.

Once I set the setting correct in this folder everything worked perfectly.  Yeah me!! Yeah osCommerce.  And of course Yeah my happy customer.

IIS .php .htaccess

If you are on this page then you probably realize that .htaccess files do not work with IIS.  You may have even experienced this problem with osCommerce.  And you might be trying to turn register_globals on for one particular site you are hosting or changing some other .php value for a specific site.  Well the solution is simple although programatically not eligant. 

Copy the php.ini file you are currently using into the root of the website for which you want to change one of the .php variables.  Change that php.ini file to the setting you want for that website.  In our case we set register_globals = on because we have it set to off for the rest of our .php sites.

There is the possiblity that this worked for us because we are using the hsphere control panel, but I do not beleive that is the case.  I would love to here comments and feedback.


Call Us Today at (713) 592-6724