From 69de5875ee80c39f8c7c586d31ccf73e0c357906 Mon Sep 17 00:00:00 2001 From: Andrew Penhorwood Date: Sun, 23 Jun 2013 22:46:01 -0400 Subject: [PATCH] Added basic unit test for payflowGateway.cfc. These unit test will tell you if the gateway is working with paypal. I have tested these with my own credentials and the test passed. Someone wanting to test will need to user their credentials (added at the top of the test/payflowTest.cfc) to make the test work. --- api/gateway/paypal/payflow/payflowGateway.cfc | 6 +- .../paypal/payflow/test/payflowTest.cfc | 596 ++++++++++++++++++ 2 files changed, 599 insertions(+), 3 deletions(-) create mode 100644 api/gateway/paypal/payflow/test/payflowTest.cfc diff --git a/api/gateway/paypal/payflow/payflowGateway.cfc b/api/gateway/paypal/payflow/payflowGateway.cfc index 2eb0c61..ee8681b 100644 --- a/api/gateway/paypal/payflow/payflowGateway.cfc +++ b/api/gateway/paypal/payflow/payflowGateway.cfc @@ -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"> @@ -641,14 +641,14 @@ - + - + diff --git a/api/gateway/paypal/payflow/test/payflowTest.cfc b/api/gateway/paypal/payflow/test/payflowTest.cfc new file mode 100644 index 0000000..40133e4 --- /dev/null +++ b/api/gateway/paypal/payflow/test/payflowTest.cfc @@ -0,0 +1,596 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +