<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Programming Web Site DataBases</title>
	<atom:link href="http://www.pwsdb.com/pgm/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.pwsdb.com/pgm</link>
	<description>FREE source code, tutorials, tips, quizes, tests, notes</description>
	<lastBuildDate>Sat, 19 May 2012 00:26:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>zen-cart v.150: cannot test &#8220;off-site&#8221;</title>
		<link>http://www.pwsdb.com/pgm/?p=269</link>
		<comments>http://www.pwsdb.com/pgm/?p=269#comments</comments>
		<pubDate>Thu, 10 May 2012 20:04:52 +0000</pubDate>
		<dc:creator>greg</dc:creator>
				<category><![CDATA[PHP Zen-Cart]]></category>

		<guid isPermaLink="false">http://www.pwsdb.com/pgm/?p=269</guid>
		<description><![CDATA[Problems with testing Zen-Cart 1.5.0 off-site &#8220;Sorry, we are not accepting payments from your region at this time&#8221; SSL certificate required for zen-cart on a development server? You&#8217;re kidding! I just started testing an upgrade (to v.150) on one of our development servers. I made sure it was working properly as is (v.138a in &#8220;test mode&#8221;) before starting the upgrade process. The upgrade went well and I copied in our template. Our content pages look good. Trying a purchase, uncovered a problem. After we fill in the form on the login page and hit &#8220;continue&#8221;, we get a message (on the next page, page 2 of 3, &#8220;main_page=checkput_payment&#8221;) saying &#8220;Sorry, we are not accepting payments from your region at this time&#8221;, despite the fact that our products are &#8220;virtual&#8221;, and we have &#8220;Payment Zone&#8221; set to &#8220;&#8211;none&#8211;&#8221;. We use Authorize.net (AIM), but it appears to be an almost universal problem &#8211; regardless of your product type or zone setting. A lot of work has gone into v.150 and it is impressive. (at least, this time, they did not go through versions &#8220;a&#8221; to &#8220;h&#8221;!) However, I was ready to recommend NOT upgrading to v150 if we cannot make a test [...]]]></description>
			<content:encoded><![CDATA[<h4> Problems with testing Zen-Cart 1.5.0 off-site </h4>
<p><b>&#8220;Sorry, we are not accepting payments from your region at this time&#8221; </b><br />
SSL certificate required for zen-cart on a development server? You&#8217;re kidding!</p>
<p> I just started testing an upgrade (to v.150) on one of our development servers. I made sure it was working properly as is (v.138a in &#8220;test mode&#8221;) before starting the upgrade process. The upgrade went well and I copied in our template. Our content pages look good. Trying a purchase, uncovered a problem. After we fill in the form on the login page and hit &#8220;continue&#8221;, we get a message <em class=smaller>(on the next page, page 2 of 3, &#8220;main_page=checkput_payment&#8221;)</em> saying &#8220;Sorry, we are not accepting payments from your region at this time&#8221;, despite the fact that our products are &#8220;virtual&#8221;, and we have &#8220;Payment Zone&#8221; set to &#8220;&#8211;none&#8211;&#8221;. We use Authorize.net (AIM), but it appears to be an almost universal problem &#8211; regardless of your product type or zone setting.</p>
<p> A lot of work has gone into v.150 and it is impressive.  (at least, this time, they did not go through versions &#8220;a&#8221; to &#8220;h&#8221;!)<br />
However, I was ready to recommend NOT upgrading to v150 if we cannot make a test purchase in &#8220;test mode&#8221;, on a test/development server.</p>
<p>I decided to look, and found the bug &#8230; in<br />
includes/modules/payment/authorizenet_aim.php  </p>
<p>The bug is in the failure to recognize &#8220;test mode&#8221;.<br />
change<br />
<tt>  if (!defined('ENABLE_SSL') || ENABLE_SSL != 'true') ... </tt><br />
 to</p>
<pre>  if ((!defined('ENABLE_SSL') || ENABLE_SSL != 'true') &#038;&#038;
       MODULE_PAYMENT_AUTHORIZENET_AIM_TESTMODE != 'Test') ... </pre>
<p>then everything works correctly.<br />
&#8220;Test mode&#8221; is an authorize.net feature for the purpose of working off-site &#8211; on a development server, not production &#8230; and ZC provides similar non-live modes in other payment modules.<br />
see<br />
includes/modules/payment/authorizenet_echeck.php<br />
includes/modules/payment/linkpoint_api.php<br />
includes/modules/payment/paypaldp.php</p>
<p>I know a lot of work has gone into v.150 and it is impressive. I would say that if all bug fixes were this easy, &#8220;life could be a dream&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pwsdb.com/pgm/?feed=rss2&#038;p=269</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

