<?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>Peterism &#187; payment processor</title>
	<atom:link href="http://peterchuang.com/blog/tag/payment-processor/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterchuang.com/blog</link>
	<description>NOT just random thoughts</description>
	<lastBuildDate>Mon, 09 Aug 2010 23:15:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Custom CiviCRM Payment Processor Module</title>
		<link>http://peterchuang.com/blog/2009/03/188/</link>
		<comments>http://peterchuang.com/blog/2009/03/188/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 07:56:22 +0000</pubDate>
		<dc:creator>Peter</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[civicrm]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[payment]]></category>
		<category><![CDATA[payment processor]]></category>

		<guid isPermaLink="false">http://peterchuang.com/blog/?p=188</guid>
		<description><![CDATA[Documents the details of a custom payment processor written to work with CiviCRM 2.x.]]></description>
			<content:encoded><![CDATA[<p>I worked on a CiviCRM payment processor module for UCLA&#8217;s CyberPay. Here is a rundown of what I did as a reference (mostly for myself):</p>
<p>CMS:  Drupal 6.x with CiviCRM 2.x.</p>
<p>Drupal&#8217;s Official Site:  <a href="http://drupal.org" target="_blank">http://drupal.org</a>.<br />
CiviCRM&#8217;s Official Site:  <a href="http://civicrm.org" target="_blank">http://civicrm.org</a>.</p>
<p>Files (These files are on the CiviCRM side):<br />
&lt;drupal-root&gt;/sites/all/modules/civicrm/CRM/Core/Payment/AISCyberpayOPCE.php<br />
&lt;drupal-root&gt;/sites/all/modules/civicrm/CRM/Core/Payment/AISCyberpayOPCEIPN.php<br />
&lt;drupal-root&gt;/sites/all/modules/civicrm/CRM/Event/Payment/AISCyberpayOPCE.php<br />
&lt;drupal-root&gt;/sites/all/modules/civicrm/extern/cyberpayIPN.php</p>
<p>Contents of these files might be posted later.</p>
<p>This is a &#8220;notify&#8221; type of payment processor as described at  <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Creating+Additional+Payment+Processor+Plugins">http://wiki.civicrm.org/confluence/display/CRMDOC/Creating+Additional+Payment+Processor+Plugins</a>.</p>
<p>As mentioned in that same article, you must add this payment processor in the database table named &#8220;processor_types&#8221;.</p>
<p>On the CyberPay side, a few more files need to be created and uploaded to cyberpay.semel.ucla.edu, which currently is a Windows server that has an IP address that is authorized to access CyberPay directly.  For those at LBBP, we sometimes call this &#8220;Boston&#8217;s server&#8221;.</p>
<p>As a default setup scenario, we have a Microsoft Access DB (a flat file) as a database for transaction logging.  There are also 3 .asp files that collects user and payment info, do form validation and processing, then eventually POST the payment processing result back to CiviCRM at https://&lt;opce&#8217;s drupal server&gt;/sites/all/modules/civicrm/extern/cyberpayIPN.php. (or something like that).</p>
<p>The Access .mdb file:  ftp://&lt;boston&#8217;s server&gt;/cyberpay/npih/cyberpaytest.mdb<br />
The registration page:  ftp://&lt;boston&#8217;s server&gt;/cyberpay/npih/asp/cyberpaytest/cyberpaytest-reg.asp<br />
The form validation page:  ftp://&lt;boston&#8217;s server&gt;/cyberpay/npih/asp/cyberpaytest/cyberpaytest-validation.asp<br />
The results page that calls cyberpayIPN.php:  ftp://&lt;boston&#8217;s server&gt;/cyberpay/npih/asp/cyberpaytest/cyberpaytest-result_s.asp</p>
]]></content:encoded>
			<wfw:commentRss>http://peterchuang.com/blog/2009/03/188/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
