On Wed, Jun 11, 2008 at 2:08 PM, Matthew Smith <[EMAIL PROTECTED]>
wrote:
> I have a client that, because of their bank, wants to use either
> usaepay.com or authorize.net for a credit card gateway. usaepay is
> preferred by the bank. I was wondering if anyone has any experience with
> either of these guys, and what they thought about them. Any information
> about implementation, especially if they already have cf custom tags
> available, would be great.
>
Yeah, USAePay was a stupid nightmare at first, but then realized what my
issues were. You can actually use their coldfusion scripts they provide for
minor things within their payment system but if you advanced items like
canceling subscriptions, you need to use the soap api. \
You will need to make <cfhttp> calls to all of their API's, it's such a pain
in the ass because coldfusion 7 and 8 are WACK and cannot handle half the
datatypes or something by using <cfinvoke> yet the same call works just
fine on BlueDragon.
Here is a check subscription payment. they all require different fileds but
the developer information at leasts gives you an XML example for most of the
methods.
<cfscript>
seed = randrange(0, 1000000);
pin = '111111111';
Token = structnew ();
Token.SourceKey = '11111111111';
Token.ClientIP = "#CGI.REMOTE_ADDR#";
Token.ServerIP = "1.1.1.1";
Token.PinHash = structnew();
Token.PinHash.Type = 'md5';
Token.PinHash.Seed = #seed#;
Token.PinHash.HashValue =
hash('#Token.SourceKey#'&'#Token.PinHash.Seed#'&'#pin#');
</cfscript>
<cfoutput>
<cfxml variable="soapRequest" casesensitive="Yes">
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:usaepay" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:runCheckSale xmlns:ns1="urn:usaepay">
<Token xsi:type="ns1:ueSecurityToken">
<ClientIP xsi:type="xsd:string">#Token.ClientIP#</ClientIP>
<PinHash xsi:type="ns1:ueHash">
<HashValue xsi:type="xsd:string">#Token.PinHash.HashValue#</HashValue>
<Seed xsi:type="xsd:string">#Token.PinHash.Seed#</Seed><strong></strong>
<Type xsi:type="xsd:string">#Token.PinHash.Type#</Type>
</PinHash>
<SourceKey xsi:type="xsd:string">#Token.SourceKey#</SourceKey>
<ServerIP xsi:type="xsd:string">#Token.ServerIP#</ServerIP>
</Token>
<Params xsi:type="ns1:TransactionRequestObject">
<AccountHolder>#XMLFormat('Casey Dougall')#</AccountHolder>
<BillingAddress xsi:type="ns1:Address">
<City>#XMLFormat('Saratoga Springs')#</City>
<Company>#XMLFormat('My Company')#</Company>
<Country>USA</Country>
<Email>#XMLFormat('[EMAIL PROTECTED]')#</Email>
<Fax>#XMLFormat('518-555-5555')#</Fax>
<FirstName>Casey</FirstName>
<LastName>Dougall</LastName>
<Phone>#XMLFormat('518-555-5555')#</Phone>
<State>NY</State>
<Street>#XMLFormat('125 Web St.')#</Street>
<Zip>12866</Zip>
</BillingAddress>
<CheckData xsi:type="ns1:CheckData">
<Account>112234</Account>
<AccountType>Checking</AccountType>
<CheckNumber>0</CheckNumber>
<DriversLicense>123456789</DriversLicense>
<DriversLicenseState>NY</DriversLicenseState>
<RecordType>WEB</RecordType>
<Routing>123456789</Routing>
<SSN>123456789</SSN>
</CheckData>
<ClientIP>#Token.ClientIP#</ClientIP>
<CustomerID>00001</CustomerID>
<CustReceipt>true</CustReceipt>
<Details xsi:type="ns1:TransactionDetail">
<Amount>1.00</Amount>
<Description>#XMLFormat('This is a test sale')#</Description>
<Invoice>00001</Invoice>
<OrderID>00001</OrderID>
</Details>
<IgnoreDuplicate>true</IgnoreDuplicate>
<RecurringBilling xsi:type="ns1:RecurringBilling">
<Amount>1.00</Amount>
<Enabled>true</Enabled>
<Expire>20100701</Expire>
<Next>20080701</Next>
<NumLeft>36</NumLeft>
<Schedule>monthly</Schedule>
</RecurringBilling>
</Params>
</ns1:runCheckSale>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</cfxml>
</cfoutput><cfhttp url="https://sandbox.usaepay.com/soap/gate/18B0E19B/"
method="POST" resolveurl="NO">
<cfhttpparam type="header" name="SOAPAction" value="runCheckSale">
<cfhttpparam type="header" name="Content-Type" value="application/soap+xml;
charset=utf-8" />
<cfhttpparam type="header" name="Cache-Control" value="Cache-Control:
max-age=0, must-revalidate, proxy-revalidate, no-cache" />
<cfhttpparam type="xml" name="body" value="#soapRequest#">
</cfhttp>
<cfset returned = xmlParse(cfhttp.FileContent)>
<CFSCRIPT>
usepayResult = StructNew();
usepayResult.AuthCode =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["AuthCode"]["XMLtext"];
usepayResult.CustNum =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["CustNum"]["XMLtext"];
usepayResult.isDuplicate=
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["isDuplicate"]["XMLtext"];
usepayResult.RefNum =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["RefNum"]["XMLtext"];
usepayResult.Result =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["Result"]["XMLtext"];
usepayResult.ResultCode =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["ResultCode"]["XMLtext"];
usepayResult.Status =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["Status"]["XMLtext"];
usepayResult.StatusCode =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["StatusCode"]["XMLtext"];
usepayResult.Error =
returned["SOAP-ENV:Envelope"]["SOAP-ENV:Body"]["ns1:runCheckSaleResponse"]["runCheckSaleReturn"]["Error"]["XMLtext"];
</CFSCRIPT>
<cfdump var="#usepayResult#">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:261756
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5