Skip to content

Commit

Permalink
Merge pull request #2 from penhorwood/master
Browse files Browse the repository at this point in the history
Payflow unit test from @penhorwood to confirm gateway works as expected for issue #1.
  • Loading branch information
ghidinelli committed Jun 25, 2013
2 parents 64cdf45 + 69de587 commit ba863ef
Show file tree
Hide file tree
Showing 2 changed files with 599 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/gateway/paypal/payflow/payflowGateway.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
access = "public"
returntype = "any"
output = "false"
purpose = ""
purpose = "Inquiry Transaction by TransactionID. Other types of inquiry transactions are not supported."
author = "Andrew Penhorwood"
created = "08/30/2012">

Expand Down Expand Up @@ -641,14 +641,14 @@

<cfif structKeyExists(arguments.payload, "TRXTYPE")>
<!--- authorize (Authorization Transaction) & purchase (Sale Transaction) --->
<cfif arguments.payload.TRXTYPE EQ "A,S">
<cfif inList("A,S", arguments.payload.TRXTYPE)>
<cfif structKeyExists(results, "PNREF")>
<cfset response.setTransactionId(results.PNREF)>
<cfset response.setAuthorization(results.PNREF)>
</cfif>

<!--- capture (Delayed Capture Transaction) --->
<cfelseif arguments.payload.TRXTYPE EQ "D,C,I,V">
<cfelseif inList("D,C,I,V", arguments.payload.TRXTYPE)>
<cfif structKeyExists(results, "PNREF")>
<cfset response.setTransactionId(results.PNREF)>
</cfif>
Expand Down
Loading

0 comments on commit ba863ef

Please sign in to comment.