prismpay 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ReportingService.xml +178 -0
- data/lib/prismpay.rb +26 -13
- data/lib/prismpay_am.rb +5 -0
- data/lib/prismpay_reports.rb +215 -29
- data/lib/version.rb +9 -0
- data/lib/webpay.yaml +51 -0
- data/spec/prismpay_spec.rb +5 -5
- metadata +22 -34
- data/spec/file~ +0 -12
- data/spec/junk~ +0 -50
- data/spec/prismpay_reports_spec.rb +0 -8
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<wsdl:definitions targetNamespace="https://trans.myprismpay.com/report/services/ReportingServices" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="https://trans.myprismpay.com/report/services/ReportingServices" xmlns:intf="https://trans.myprismpay.com/report/services/ReportingServices" xmlns:tns1="urn:ReportingProcess" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
3
|
+
<!--WSDL created by Apache Axis version: 1.4
|
|
4
|
+
Built on Apr 22, 2006 (06:55:48 PDT)-->
|
|
5
|
+
<wsdl:types>
|
|
6
|
+
<schema elementFormDefault="qualified" targetNamespace="urn:ReportingProcess" xmlns="http://www.w3.org/2001/XMLSchema">
|
|
7
|
+
<complexType name="LimitToDate">
|
|
8
|
+
<sequence>
|
|
9
|
+
<element name="month" type="xsd:int"/>
|
|
10
|
+
<element name="day" type="xsd:int"/>
|
|
11
|
+
<element name="year" type="xsd:int"/>
|
|
12
|
+
<element name="hour" type="xsd:int"/>
|
|
13
|
+
<element name="minute" type="xsd:int"/>
|
|
14
|
+
<element name="second" type="xsd:int"/>
|
|
15
|
+
<element name="ampm" type="xsd:string"/>
|
|
16
|
+
</sequence>
|
|
17
|
+
</complexType>
|
|
18
|
+
<complexType name="LimitToCards">
|
|
19
|
+
<sequence>
|
|
20
|
+
<element name="visa" type="xsd:int"/>
|
|
21
|
+
<element name="mastercard" type="xsd:int"/>
|
|
22
|
+
<element name="amex" type="xsd:int"/>
|
|
23
|
+
<element name="discovernetwork" type="xsd:int"/>
|
|
24
|
+
<element name="jcb" type="xsd:int"/>
|
|
25
|
+
<element name="diners" type="xsd:int"/>
|
|
26
|
+
<element name="debit" type="xsd:int"/>
|
|
27
|
+
<element name="flyingj" type="xsd:int"/>
|
|
28
|
+
<element name="cfna" type="xsd:int"/>
|
|
29
|
+
<element name="gemoney" type="xsd:int"/>
|
|
30
|
+
<element name="fleetone" type="xsd:int"/>
|
|
31
|
+
<element name="fuellnk" type="xsd:int"/>
|
|
32
|
+
<element name="fuelman" type="xsd:int"/>
|
|
33
|
+
<element name="mastercardfleet" type="xsd:int"/>
|
|
34
|
+
<element name="visafleet" type="xsd:int"/>
|
|
35
|
+
<element name="voyager" type="xsd:int"/>
|
|
36
|
+
<element name="wrightexpress" type="xsd:int"/>
|
|
37
|
+
</sequence>
|
|
38
|
+
</complexType>
|
|
39
|
+
<complexType name="LimitToTransTypes">
|
|
40
|
+
<sequence>
|
|
41
|
+
<element name="ccpreauths" type="xsd:int"/>
|
|
42
|
+
<element name="ccpostauthsales" type="xsd:int"/>
|
|
43
|
+
<element name="ccvoids" type="xsd:int"/>
|
|
44
|
+
<element name="ccrefunds" type="xsd:int"/>
|
|
45
|
+
<element name="ccchargebacks" type="xsd:int"/>
|
|
46
|
+
<element name="achpreauths" type="xsd:int"/>
|
|
47
|
+
<element name="achsettlements" type="xsd:int"/>
|
|
48
|
+
<element name="achreturns" type="xsd:int"/>
|
|
49
|
+
<element name="achnocs" type="xsd:int"/>
|
|
50
|
+
<element name="achvoids" type="xsd:int"/>
|
|
51
|
+
<element name="achcreditsauth" type="xsd:int"/>
|
|
52
|
+
<element name="achcreditsmerchantdebit" type="xsd:int"/>
|
|
53
|
+
<element name="achcreditsdebitreturn" type="xsd:int"/>
|
|
54
|
+
<element name="achcreditsmerchantsettle" type="xsd:int"/>
|
|
55
|
+
<element name="achcreditspaymentsettle" type="xsd:int"/>
|
|
56
|
+
<element name="achcreditsreturn" type="xsd:int"/>
|
|
57
|
+
<element name="debitsales" type="xsd:int"/>
|
|
58
|
+
<element name="debitrefunds" type="xsd:int"/>
|
|
59
|
+
<element name="achlatereturns" type="xsd:int"/>
|
|
60
|
+
<element name="extachpreauths" type="xsd:int"/>
|
|
61
|
+
<element name="extachsettlements" type="xsd:int"/>
|
|
62
|
+
<element name="extachreturns" type="xsd:int"/>
|
|
63
|
+
<element name="extachnocs" type="xsd:int"/>
|
|
64
|
+
<element name="extachvoids" type="xsd:int"/>
|
|
65
|
+
<element name="extachcreditsauth" type="xsd:int"/>
|
|
66
|
+
<element name="extachcreditssettle" type="xsd:int"/>
|
|
67
|
+
<element name="extachcreditsreturn" type="xsd:int"/>
|
|
68
|
+
<element name="extachck21_auth" type="xsd:int"/>
|
|
69
|
+
<element name="extachck21_void" type="xsd:int"/>
|
|
70
|
+
<element name="extachck21_return" type="xsd:int"/>
|
|
71
|
+
<element name="verfication" type="xsd:int"/>
|
|
72
|
+
<element name="ccincremental" type="xsd:int"/>
|
|
73
|
+
<element name="ccreversal" type="xsd:int"/>
|
|
74
|
+
</sequence>
|
|
75
|
+
</complexType>
|
|
76
|
+
<element name="TransactionReportInfo">
|
|
77
|
+
<complexType>
|
|
78
|
+
<sequence>
|
|
79
|
+
<element name="accountkey" type="xsd:string"/>
|
|
80
|
+
<element name="sessionkey" type="xsd:string"/>
|
|
81
|
+
<element name="subid" type="xsd:string"/>
|
|
82
|
+
<element name="startdate" type="tns1:LimitToDate"/>
|
|
83
|
+
<element name="enddate" type="tns1:LimitToDate"/>
|
|
84
|
+
<element name="cardtypes" nillable="true" type="tns1:LimitToCards"/>
|
|
85
|
+
<element name="transactiontypes" type="tns1:LimitToTransTypes"/>
|
|
86
|
+
<element name="limitbycard" type="xsd:int"/>
|
|
87
|
+
<element name="limitbytranstypes" type="xsd:int"/>
|
|
88
|
+
<element name="childsubids" type="xsd:int"/>
|
|
89
|
+
<element name="accepted" type="xsd:int"/>
|
|
90
|
+
<element name="declined" type="xsd:int"/>
|
|
91
|
+
<element name="test" type="xsd:int"/>
|
|
92
|
+
<element name="initial" type="xsd:int"/>
|
|
93
|
+
<element name="recurring" type="xsd:int"/>
|
|
94
|
+
<element name="recurringonly" type="xsd:int"/>
|
|
95
|
+
<element name="recurringretries" type="xsd:int"/>
|
|
96
|
+
<element name="sort" type="xsd:int"/>
|
|
97
|
+
<element name="maxrows" type="xsd:int"/>
|
|
98
|
+
<element name="startrow" type="xsd:int"/>
|
|
99
|
+
<element name="numrows" type="xsd:int"/>
|
|
100
|
+
<element name="currency" type="xsd:string"/>
|
|
101
|
+
</sequence>
|
|
102
|
+
</complexType>
|
|
103
|
+
</element>
|
|
104
|
+
<element name="TransactionReportResult">
|
|
105
|
+
<complexType>
|
|
106
|
+
<sequence>
|
|
107
|
+
<element name="TransactionReportDetails" nillable="true">
|
|
108
|
+
<complexType>
|
|
109
|
+
<sequence>
|
|
110
|
+
<any/>
|
|
111
|
+
</sequence>
|
|
112
|
+
</complexType>
|
|
113
|
+
</element>
|
|
114
|
+
</sequence>
|
|
115
|
+
</complexType>
|
|
116
|
+
</element>
|
|
117
|
+
</schema>
|
|
118
|
+
</wsdl:types>
|
|
119
|
+
|
|
120
|
+
<wsdl:message name="TransactionReportRequest">
|
|
121
|
+
|
|
122
|
+
<wsdl:part element="tns1:TransactionReportInfo" name="TransactionReportInfo"/>
|
|
123
|
+
|
|
124
|
+
</wsdl:message>
|
|
125
|
+
|
|
126
|
+
<wsdl:message name="TransactionReportResponse">
|
|
127
|
+
|
|
128
|
+
<wsdl:part element="tns1:TransactionReportResult" name="TransactionReportResult"/>
|
|
129
|
+
|
|
130
|
+
</wsdl:message>
|
|
131
|
+
|
|
132
|
+
<wsdl:portType name="ReportingServices">
|
|
133
|
+
|
|
134
|
+
<wsdl:operation name="TransactionReport" parameterOrder="TransactionReportInfo">
|
|
135
|
+
|
|
136
|
+
<wsdl:input message="impl:TransactionReportRequest" name="TransactionReportRequest"/>
|
|
137
|
+
|
|
138
|
+
<wsdl:output message="impl:TransactionReportResponse" name="TransactionReportResponse"/>
|
|
139
|
+
|
|
140
|
+
</wsdl:operation>
|
|
141
|
+
|
|
142
|
+
</wsdl:portType>
|
|
143
|
+
|
|
144
|
+
<wsdl:binding name="ReportingServicesSoapBinding" type="impl:ReportingServices">
|
|
145
|
+
|
|
146
|
+
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
147
|
+
|
|
148
|
+
<wsdl:operation name="TransactionReport">
|
|
149
|
+
|
|
150
|
+
<wsdlsoap:operation soapAction="TransactionReport"/>
|
|
151
|
+
|
|
152
|
+
<wsdl:input name="TransactionReportRequest">
|
|
153
|
+
|
|
154
|
+
<wsdlsoap:body use="literal"/>
|
|
155
|
+
|
|
156
|
+
</wsdl:input>
|
|
157
|
+
|
|
158
|
+
<wsdl:output name="TransactionReportResponse">
|
|
159
|
+
|
|
160
|
+
<wsdlsoap:body use="literal"/>
|
|
161
|
+
|
|
162
|
+
</wsdl:output>
|
|
163
|
+
|
|
164
|
+
</wsdl:operation>
|
|
165
|
+
|
|
166
|
+
</wsdl:binding>
|
|
167
|
+
|
|
168
|
+
<wsdl:service name="ReportingService">
|
|
169
|
+
|
|
170
|
+
<wsdl:port binding="impl:ReportingServicesSoapBinding" name="ReportingServices">
|
|
171
|
+
|
|
172
|
+
<wsdlsoap:address location="https://trans.myprismpay.com/report/services/ReportingServices"/>
|
|
173
|
+
|
|
174
|
+
</wsdl:port>
|
|
175
|
+
|
|
176
|
+
</wsdl:service>
|
|
177
|
+
|
|
178
|
+
</wsdl:definitions>
|
data/lib/prismpay.rb
CHANGED
|
@@ -41,7 +41,8 @@ module PrismPay
|
|
|
41
41
|
############################################################
|
|
42
42
|
|
|
43
43
|
def profile_sale(amount, profile_id, last_four, options = {})
|
|
44
|
-
response = @client.request :process_profile_sale do
|
|
44
|
+
# response = @client.request :process_profile_sale do
|
|
45
|
+
response = @client.request 'processProfileSale' do
|
|
45
46
|
http.auth.ssl.verify_mode = :none
|
|
46
47
|
soap.body &build_profile_sale(amount, profile_id, last_four, options)
|
|
47
48
|
end
|
|
@@ -51,7 +52,8 @@ module PrismPay
|
|
|
51
52
|
|
|
52
53
|
def profile_retrieve(options = {})
|
|
53
54
|
# process a profile retrieve request
|
|
54
|
-
response = @client.request :process_profile_retrieve do
|
|
55
|
+
# response = @client.request :process_profile_retrieve do
|
|
56
|
+
response = @client.request 'processProfileRetrieve' do
|
|
55
57
|
http.auth.ssl.verify_mode = :none
|
|
56
58
|
soap.body &build_profile_retrieve(options)
|
|
57
59
|
end
|
|
@@ -65,7 +67,8 @@ module PrismPay
|
|
|
65
67
|
|
|
66
68
|
# need to merge the gateway instance options with the options
|
|
67
69
|
|
|
68
|
-
response = @client.request :process_cc_sale do
|
|
70
|
+
# response = @client.request :process_cc_sale do
|
|
71
|
+
response = @client.request 'processCCSale' do
|
|
69
72
|
http.auth.ssl.verify_mode = :none
|
|
70
73
|
soap.body &build_cc_sale_auth(amount, creditcard, options)
|
|
71
74
|
end
|
|
@@ -77,7 +80,8 @@ module PrismPay
|
|
|
77
80
|
|
|
78
81
|
def cc_authorize(amount, creditcard, options = {})
|
|
79
82
|
# reserve funds for future captures
|
|
80
|
-
response = @client.request :process_cc_auth do
|
|
83
|
+
# response = @client.request :process_cc_auth do
|
|
84
|
+
response = @client.request 'processCCAuth' do
|
|
81
85
|
http.auth.ssl.verify_mode = :none
|
|
82
86
|
soap.body &build_cc_sale_auth(amount, creditcard, options)
|
|
83
87
|
end
|
|
@@ -91,7 +95,8 @@ module PrismPay
|
|
|
91
95
|
# need to put some validation into these methods before
|
|
92
96
|
# making the call to the build methods
|
|
93
97
|
|
|
94
|
-
response = @client.request :process_cc_post do
|
|
98
|
+
# response = @client.request :process_cc_post do
|
|
99
|
+
response = @client.request 'processCCPost' do
|
|
95
100
|
http.auth.ssl.verify_mode = :none
|
|
96
101
|
soap.body &build_cc_capture(amount, authorization, pp_txn_id, options)
|
|
97
102
|
end
|
|
@@ -102,7 +107,8 @@ module PrismPay
|
|
|
102
107
|
|
|
103
108
|
def cc_void(amount, identification, pp_txn_id, options = {})
|
|
104
109
|
# voids previous transactions
|
|
105
|
-
response = @client.request :process_cc_void do
|
|
110
|
+
# response = @client.request :process_cc_void do
|
|
111
|
+
response = @client.request 'processCCVoid' do
|
|
106
112
|
http.auth.ssl.verify_mode = :none
|
|
107
113
|
soap.body &build_cc_void(amount, identification, pp_txn_id, options)
|
|
108
114
|
end
|
|
@@ -113,7 +119,8 @@ module PrismPay
|
|
|
113
119
|
|
|
114
120
|
def credit(amount, identification, pp_txn_id, options = {})
|
|
115
121
|
# applies credit back against previous transaction
|
|
116
|
-
response = @client.request :process_credit do
|
|
122
|
+
# response = @client.request :process_credit do
|
|
123
|
+
response = @client.request 'processCredit' do
|
|
117
124
|
http.auth.ssl.verify_mode = :none
|
|
118
125
|
soap.body &build_credit(amount, identification, pp_txn_id, options)
|
|
119
126
|
end
|
|
@@ -155,7 +162,8 @@ module PrismPay
|
|
|
155
162
|
############################################################
|
|
156
163
|
|
|
157
164
|
def ext_ach_sale(amount, bank_account, options = {})
|
|
158
|
-
response = @client.request :process_ext_ach_sale do
|
|
165
|
+
# response = @client.request :process_ext_ach_sale do
|
|
166
|
+
response = @client.request 'processExtACHSale' do
|
|
159
167
|
http.auth.ssl.verify_mode = :none
|
|
160
168
|
soap.body &build_ext_ach_sale_disburse(amount, bank_account, options)
|
|
161
169
|
end
|
|
@@ -167,7 +175,8 @@ module PrismPay
|
|
|
167
175
|
# ext_ach_void doesn't work in generic testing accounts
|
|
168
176
|
############################################################
|
|
169
177
|
def ext_ach_void(identification, pp_txn_id, options = {})
|
|
170
|
-
response = @client.request :process_ext_ach_void do
|
|
178
|
+
# response = @client.request :process_ext_ach_void do
|
|
179
|
+
response = @client.request 'processExtACHVoid' do
|
|
171
180
|
http.auth.ssl.verify_mode = :none
|
|
172
181
|
soap.body &build_ext_ach_refund_void(nil, identification,
|
|
173
182
|
pp_txn_id, options)
|
|
@@ -177,7 +186,8 @@ module PrismPay
|
|
|
177
186
|
end
|
|
178
187
|
|
|
179
188
|
def ext_ach_refund(amount, identification, pp_txn_id, options = {})
|
|
180
|
-
response = @client.request :process_ext_ach_credit do
|
|
189
|
+
# response = @client.request :process_ext_ach_credit do
|
|
190
|
+
response = @client.request 'processExtACHCredit' do
|
|
181
191
|
http.auth.ssl.verify_mode = :none
|
|
182
192
|
soap.body &build_ext_ach_refund_void(amount, identification,
|
|
183
193
|
pp_txn_id, options)
|
|
@@ -187,7 +197,8 @@ module PrismPay
|
|
|
187
197
|
end
|
|
188
198
|
|
|
189
199
|
def ext_ach_consumer_disbursement(amount, bank_account, options = {})
|
|
190
|
-
response = @client.request :process_ext_ach_consumer_disbursement do
|
|
200
|
+
# response = @client.request :process_ext_ach_consumer_disbursement do
|
|
201
|
+
response = @client.request 'processExtACHConsumerDisbursement' do
|
|
191
202
|
http.auth.ssl.verify_mode = :none
|
|
192
203
|
soap.body &build_ext_ach_sale_disburse(amount, bank_account, options)
|
|
193
204
|
end
|
|
@@ -435,12 +446,14 @@ module PrismPay
|
|
|
435
446
|
# should probably pass in the companyname under options
|
|
436
447
|
acct_type = "#{bank_account.account_holder_type} " +
|
|
437
448
|
"#{bank_account.account_type}"
|
|
438
|
-
|
|
449
|
+
|
|
439
450
|
xml_block = Proc.new { |xml|
|
|
440
451
|
xml.ckinfo("xsi:type" => "urn:ACHInfo"){
|
|
441
452
|
xml.acctid @acctid
|
|
442
453
|
xml.merchantpin(@password) if @password
|
|
443
454
|
xml.ckname bank_account.name
|
|
455
|
+
xml.firstname bank_account.first_name
|
|
456
|
+
xml.lastname bank_account.last_name
|
|
444
457
|
xml.ckaba bank_account.routing_number
|
|
445
458
|
xml.ckacct bank_account.account_number
|
|
446
459
|
xml.ckno(bank_account.cknumber) if bank_account.number
|
|
@@ -461,7 +474,7 @@ module PrismPay
|
|
|
461
474
|
|
|
462
475
|
def build_ext_ach_refund_void(amount, auth, pp_txn_id, options)
|
|
463
476
|
# should probably pass in the companyname under options
|
|
464
|
-
|
|
477
|
+
|
|
465
478
|
xml_block = Proc.new { |xml|
|
|
466
479
|
xml.ckinfo("xsi:type" => "urn:ACHInfo"){
|
|
467
480
|
xml.acctid @acctid
|
data/lib/prismpay_am.rb
CHANGED
|
@@ -27,6 +27,11 @@ module ActiveMerchant
|
|
|
27
27
|
result.active_merchant_response
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
def check_void(identification, pp_txn_id, options = {})
|
|
31
|
+
result = @gateway.ext_ach_void(identification, pp_txn_id, options)
|
|
32
|
+
result.active_merchant_response
|
|
33
|
+
end
|
|
34
|
+
|
|
30
35
|
def check_refund(amount, identification, pp_txn_id, options = {})
|
|
31
36
|
|
|
32
37
|
result = @gateway.ext_ach_refund(amount, identification,
|
data/lib/prismpay_reports.rb
CHANGED
|
@@ -16,30 +16,26 @@ module PrismPay
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
TRANS_TYPES = ["ccpreauths", "ccpostauthsales", "ccvoids",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"ccreversal"]
|
|
19
|
+
"ccrefunds", "ccchargebacks", "achpreauths",
|
|
20
|
+
"achsettlements", "achreturns", "achnocs",
|
|
21
|
+
"achvoids", "achcreditsauth",
|
|
22
|
+
"achcreditsmerchantdebit", "achcreditsdebitreturn",
|
|
23
|
+
"achcreditsmerchantsettle",
|
|
24
|
+
"achcreditspaymentsettle", "achcreditsreturn",
|
|
25
|
+
"debitsales", "debitrefunds", "achlatereturns",
|
|
26
|
+
"extachpreauths", "extachsettlements",
|
|
27
|
+
"extachreturns", "extachnocs", "extachvoids",
|
|
28
|
+
"extachcreditsauth", "extachcreditssettle",
|
|
29
|
+
"extachcreditsreturn", "extachck21_auth ",
|
|
30
|
+
"extachck21_void", "extachck21_return",
|
|
31
|
+
"verfication", "ccincremental", "ccreversal"]
|
|
33
32
|
|
|
34
33
|
|
|
35
34
|
CARD_TYPES = ["visa", "mastercard", "amex", "discovernetwork",
|
|
36
35
|
"jcb", "diners", "debit", "flyingj", "cfna",
|
|
37
36
|
"gemoney", "fleetone", "fuellnk", "fuelman",
|
|
38
37
|
"mastercardfleet", "visafleet", "voyager",
|
|
39
|
-
"wrightexpress"]
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
PYDMO_KEY = '7974346A366450744C624A54715A39644A584E4469626246'
|
|
38
|
+
"wrightexpress"]
|
|
43
39
|
|
|
44
40
|
|
|
45
41
|
attr_accessor :acctid, :password
|
|
@@ -53,20 +49,15 @@ module PrismPay
|
|
|
53
49
|
merchant_info.merge!({:login => 'TEST0'}) unless merchant_info[:login]
|
|
54
50
|
|
|
55
51
|
@login = merchant_info[:login]
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
# merchant_info.merge!({:end_date => end_date}) unless merchant_info[:end_date]
|
|
59
|
-
|
|
60
|
-
# TODO this is the key for PYDMO, needs to be read in from a file
|
|
61
|
-
@key = hexstr_to_str(PYDMO_KEY)
|
|
52
|
+
@key = hexstr_to_str(options[:key])
|
|
53
|
+
@account_key = options[:account_key]
|
|
62
54
|
|
|
63
55
|
@client = Savon::Client.new(WSDL) # initialize savon client
|
|
64
56
|
end
|
|
65
57
|
|
|
66
58
|
|
|
67
59
|
def account_key
|
|
68
|
-
|
|
69
|
-
"2D0BB3547DCCE429"
|
|
60
|
+
@account_key
|
|
70
61
|
end
|
|
71
62
|
|
|
72
63
|
|
|
@@ -77,6 +68,201 @@ module PrismPay
|
|
|
77
68
|
end
|
|
78
69
|
|
|
79
70
|
|
|
71
|
+
############################################################
|
|
72
|
+
# These transactions are the ones that happen outside of our
|
|
73
|
+
# system that we must know about and make relationships to
|
|
74
|
+
# transactions that are in our system
|
|
75
|
+
############################################################
|
|
76
|
+
|
|
77
|
+
def get_ext_ach_settled(start_date, end_date)
|
|
78
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
79
|
+
['extachsettlements']})
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def get_ext_ach_returned(start_date, end_date)
|
|
83
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
84
|
+
['extachreturns']})
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def get_ext_ach_credits_settled(start_date, end_date)
|
|
88
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
89
|
+
['extachcreditssettle']})
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
def get_ext_ach_credits_returned(start_date, end_date)
|
|
93
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
94
|
+
['extachcreditsreturn']})
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def get_cc_chargebacks(start_date, end_date)
|
|
98
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
99
|
+
['ccchargebacks']})
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def get_cc_reversals(start_date, end_date)
|
|
103
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
104
|
+
['ccreversal']})
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
############################################################
|
|
108
|
+
# These transactions are the ones our system currently makes use
|
|
109
|
+
# of. The only other transactions currently wrapped by
|
|
110
|
+
# prismpay.rb would be of type ccpreauths. We are not presently
|
|
111
|
+
# making any calls to that though
|
|
112
|
+
############################################################
|
|
113
|
+
|
|
114
|
+
def get_cc_sales(start_date, end_date)
|
|
115
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
116
|
+
['ccpostauthsales']})
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def get_cc_voids(start_date, end_date)
|
|
120
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
121
|
+
['ccvoids']})
|
|
122
|
+
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def get_cc_refunds(start_date, end_date)
|
|
126
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
127
|
+
['ccrefunds']})
|
|
128
|
+
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def get_ext_ach_auths(start_date, end_date)
|
|
132
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
133
|
+
['extachpreauths']})
|
|
134
|
+
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
def get_ext_ach_credit_auths(start_date, end_date)
|
|
138
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
139
|
+
['extachcreditsauth']})
|
|
140
|
+
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
def get_ext_ach_voids(start_date, end_date)
|
|
144
|
+
get_transactions(start_date, end_date, {:trans_types =>
|
|
145
|
+
['extachvoids']})
|
|
146
|
+
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
############################################################
|
|
150
|
+
# The remaining transactions for testing purposes
|
|
151
|
+
############################################################
|
|
152
|
+
|
|
153
|
+
def get_cc_preauths(start_date, end_date)
|
|
154
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
155
|
+
['ccpreauths']})
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
def get_ach_preauths(start_date, end_date)
|
|
159
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
160
|
+
['achpreauths']})
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def get_ach_settlements(start_date, end_date)
|
|
164
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
165
|
+
['achsettlements']})
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def get_ach_returns(start_date, end_date)
|
|
169
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
170
|
+
['achreturns']})
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
def get_ach_nocs(start_date, end_date)
|
|
174
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
175
|
+
['achnocs']})
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
def get_ach_voids(start_date, end_date)
|
|
179
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
180
|
+
['achvoids']})
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
def get_ach_credits_auth(start_date, end_date)
|
|
184
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
185
|
+
['achcreditsauth']})
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
def get_ach_credits_merchant_debit(start_date, end_date)
|
|
189
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
190
|
+
['achcreditsmerchantdebit']})
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
def get_ach_credits_debit_return(start_date, end_date)
|
|
194
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
195
|
+
['achcreditsdebitreturn']})
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
def get_ach_credits_merchant_settle(start_date, end_date)
|
|
199
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
200
|
+
['achcreditsmerchantsettle']})
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
def get_ach_credits_payment_settle(start_date, end_date)
|
|
204
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
205
|
+
['achcreditspaymentsettle']})
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
def get_ach_credits_return(start_date, end_date)
|
|
209
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
210
|
+
['achcreditsreturn']})
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
def get_debit_sales(start_date, end_date)
|
|
214
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
215
|
+
['debitsales']})
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
def get_debit_refunds(start_date, end_date)
|
|
219
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
220
|
+
['debitrefunds']})
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
def get_ach_late_returns(start_date, end_date)
|
|
224
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
225
|
+
['achlatereturns']})
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
def get_ext_ach_nocs(start_date, end_date)
|
|
229
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
230
|
+
['extachnocs']})
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
def get_ext_ach_ck21_auth(start_date, end_date)
|
|
234
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
235
|
+
['extachck21_auth']})
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
def get_ext_ach_ck21_void(start_date, end_date)
|
|
239
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
240
|
+
['extachck21_void']})
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
def get_ext_ach_ck21_return(start_date, end_date)
|
|
244
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
245
|
+
['extachck21_return']})
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
def get_verification(start_date, end_date)
|
|
249
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
250
|
+
['verfication']})
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
def get_cc_incremental(start_date, end_date)
|
|
254
|
+
get_transactions(start_date, end_date,{:trans_types =>
|
|
255
|
+
['ccincremental']})
|
|
256
|
+
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
############################################################
|
|
261
|
+
# The main method. Takes two Time objects for a start and an
|
|
262
|
+
# end. Also takes a hash of options which act as flags or
|
|
263
|
+
# variables to affect the report.
|
|
264
|
+
############################################################
|
|
265
|
+
|
|
80
266
|
def get_transactions(start_date, end_date, options = {})
|
|
81
267
|
|
|
82
268
|
#variables to handle return max of sample sets
|
|
@@ -123,7 +309,7 @@ module PrismPay
|
|
|
123
309
|
else
|
|
124
310
|
transaction_types = TRANS_TYPES
|
|
125
311
|
end
|
|
126
|
-
|
|
312
|
+
|
|
127
313
|
|
|
128
314
|
response = @client.request "TransactionReportInfo" do
|
|
129
315
|
http.auth.ssl.verify_mode = :none
|
|
@@ -209,8 +395,8 @@ module PrismPay
|
|
|
209
395
|
ixml.ccreversal(transaction_types.include?("ccreversal") ? 1 : 0)
|
|
210
396
|
}
|
|
211
397
|
|
|
212
|
-
xml.limitbycard((card_types == CARD_TYPES) ? 0 : 1 )
|
|
213
|
-
xml.limitbytranstypes((transaction_types == TRANS_TYPES) ? 0 : 1)
|
|
398
|
+
xml.limitbycard((card_types.sort == CARD_TYPES.sort) ? 0 : 1 )
|
|
399
|
+
xml.limitbytranstypes((transaction_types.sort == TRANS_TYPES.sort) ? 0 : 1)
|
|
214
400
|
xml.childsubids(childsubids)
|
|
215
401
|
xml.accepted(accepted)
|
|
216
402
|
xml.declined(declined)
|
data/lib/version.rb
ADDED
data/lib/webpay.yaml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# This file is an example of what configuration options are available
|
|
2
|
+
# for each instance of a PrismPay::Webpay object.
|
|
3
|
+
|
|
4
|
+
# required options will are "form_ids, login, session_id, key". The
|
|
5
|
+
# form_ids should be a hash comprised of a list of keys containing cgi
|
|
6
|
+
# actions that are containing a hash comprised of a formid key and a
|
|
7
|
+
# postback url value pair both the formid and postback_url should be
|
|
8
|
+
# in their unencrypted form
|
|
9
|
+
|
|
10
|
+
# form_ids:
|
|
11
|
+
# cgi_action1:
|
|
12
|
+
# formid1: postback_url1
|
|
13
|
+
# cgi_action2:
|
|
14
|
+
# formid2: postback_url2
|
|
15
|
+
# cgi_action3:
|
|
16
|
+
# formid3: postback_url3
|
|
17
|
+
|
|
18
|
+
############################################################
|
|
19
|
+
# Example file
|
|
20
|
+
############################################################
|
|
21
|
+
# login: TEST0
|
|
22
|
+
# session_id: BC12D2A03254
|
|
23
|
+
# password: mypassword
|
|
24
|
+
# key: AF123ABC32
|
|
25
|
+
# subid: mysubid
|
|
26
|
+
# form_ids:
|
|
27
|
+
# profile_add:
|
|
28
|
+
# 15023: http://dummy.domain/cgi_path
|
|
29
|
+
# cc_sale:
|
|
30
|
+
# 20000: http://another.dummy.domain/another_cgi_path
|
|
31
|
+
############################################################
|
|
32
|
+
|
|
33
|
+
login: TEST0
|
|
34
|
+
session_id: # don't leave it blank use hexstr
|
|
35
|
+
key: # don't leave blank use hexstr
|
|
36
|
+
#password: # if you have one use it
|
|
37
|
+
#subid: # if you have one use it
|
|
38
|
+
|
|
39
|
+
##########################################################
|
|
40
|
+
# You can get your unencrypted form_ids by calling
|
|
41
|
+
# PrismPay::Webpay.get_formid(hexstr)
|
|
42
|
+
# the postback_urls you will need
|
|
43
|
+
# to setup in your prismpay webpay form creation tool
|
|
44
|
+
##########################################################
|
|
45
|
+
form_ids:
|
|
46
|
+
profile_add:
|
|
47
|
+
#profile_add_formid: profile_add_postback_url
|
|
48
|
+
cc_sale:
|
|
49
|
+
#cc_sale_formid: cc_sale_postback_url
|
|
50
|
+
|
|
51
|
+
|
data/spec/prismpay_spec.rb
CHANGED
|
@@ -355,12 +355,12 @@ describe PrismPay::PrismPay, "ext_ach_sale", :bfd => true do
|
|
|
355
355
|
|
|
356
356
|
ba = PrismPay::BankAccount.new
|
|
357
357
|
ba[:name] = "George Jones"
|
|
358
|
-
ba[:account_number] = "
|
|
359
|
-
ba[:routing_number] = "
|
|
358
|
+
ba[:account_number] = "999999999"
|
|
359
|
+
ba[:routing_number] = "999999999"
|
|
360
360
|
ba[:account_holder_type] = 'personal'
|
|
361
361
|
ba[:account_type] = 'checking'
|
|
362
362
|
|
|
363
|
-
amount = "1.
|
|
363
|
+
amount = "1.11"
|
|
364
364
|
|
|
365
365
|
options = {
|
|
366
366
|
:login => "TEST0",
|
|
@@ -379,9 +379,9 @@ describe PrismPay::PrismPay, "ext_ach_sale", :bfd => true do
|
|
|
379
379
|
response.body[:multi_ref][:historyid],
|
|
380
380
|
amount)
|
|
381
381
|
|
|
382
|
-
amount2 = 5.
|
|
382
|
+
amount2 = 5.54
|
|
383
383
|
|
|
384
|
-
response = gateway.ext_ach_sale(
|
|
384
|
+
response = gateway.ext_ach_sale(amount2, ba, options).soap_response
|
|
385
385
|
|
|
386
386
|
save_void_trans(response.body[:multi_ref][:orderid],
|
|
387
387
|
response.body[:multi_ref][:historyid],
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prismpay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,60 +9,51 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-06-
|
|
12
|
+
date: 2012-06-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activemerchant
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: &70179187332480 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
|
-
- -
|
|
19
|
+
- - =
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
21
|
version: 1.20.4
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements:
|
|
25
|
-
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- - '='
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: 1.20.4
|
|
24
|
+
version_requirements: *70179187332480
|
|
30
25
|
- !ruby/object:Gem::Dependency
|
|
31
26
|
name: savon
|
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
|
27
|
+
requirement: &70179187331400 !ruby/object:Gem::Requirement
|
|
33
28
|
none: false
|
|
34
29
|
requirements:
|
|
35
|
-
- -
|
|
30
|
+
- - ~>
|
|
36
31
|
- !ruby/object:Gem::Version
|
|
37
|
-
version: 0.
|
|
32
|
+
version: 1.0.0
|
|
38
33
|
type: :runtime
|
|
39
34
|
prerelease: false
|
|
40
|
-
version_requirements:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- - '='
|
|
44
|
-
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.9.9
|
|
46
|
-
description:
|
|
35
|
+
version_requirements: *70179187331400
|
|
36
|
+
description: Provide an interface to Prismpay web services, and creates an ActiveMerchant
|
|
37
|
+
wrapper for PrismPay web services
|
|
47
38
|
email: rnash@tnsolutions.com
|
|
48
39
|
executables: []
|
|
49
40
|
extensions: []
|
|
50
41
|
extra_rdoc_files: []
|
|
51
42
|
files:
|
|
52
|
-
- lib/prismpay.rb
|
|
53
43
|
- lib/prism_credit_response.rb
|
|
54
|
-
- lib/
|
|
44
|
+
- lib/prismpay.rb
|
|
55
45
|
- lib/prismpay_am.rb
|
|
46
|
+
- lib/prismpay_reports.rb
|
|
47
|
+
- lib/ReportingService.xml
|
|
48
|
+
- lib/TransactionService.xml
|
|
49
|
+
- lib/version.rb
|
|
56
50
|
- lib/webpay.rb
|
|
51
|
+
- lib/webpay.yaml
|
|
57
52
|
- README.md
|
|
58
|
-
- lib/prismpay_reports.rb
|
|
59
|
-
- spec/file~
|
|
60
|
-
- spec/webpay_spec.rb
|
|
61
53
|
- spec/prism_credit_response_spec.rb
|
|
62
|
-
- spec/junk~
|
|
63
|
-
- spec/prismpay_reports_spec.rb
|
|
64
54
|
- spec/prismpay_spec.rb
|
|
65
|
-
|
|
55
|
+
- spec/webpay_spec.rb
|
|
56
|
+
homepage: http://development.compassagile.com
|
|
66
57
|
licenses: []
|
|
67
58
|
post_install_message:
|
|
68
59
|
rdoc_options: []
|
|
@@ -82,14 +73,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
82
73
|
version: '0'
|
|
83
74
|
requirements: []
|
|
84
75
|
rubyforge_project:
|
|
85
|
-
rubygems_version: 1.8.
|
|
76
|
+
rubygems_version: 1.8.11
|
|
86
77
|
signing_key:
|
|
87
78
|
specification_version: 3
|
|
88
|
-
summary:
|
|
79
|
+
summary: Provides an interface to Prismpay web services
|
|
89
80
|
test_files:
|
|
90
|
-
- spec/file~
|
|
91
|
-
- spec/webpay_spec.rb
|
|
92
81
|
- spec/prism_credit_response_spec.rb
|
|
93
|
-
- spec/junk~
|
|
94
|
-
- spec/prismpay_reports_spec.rb
|
|
95
82
|
- spec/prismpay_spec.rb
|
|
83
|
+
- spec/webpay_spec.rb
|
data/spec/file~
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
The previous extachsale call and response:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
The extachvoid call and response:
|
|
8
|
-
|
|
9
|
-
D, [2012-05-31T17:38:19.087895 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://trans.myprismpay.com/MPWeb/services/TransactionService" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="urn:MPTransProcess"><env:Body><processExtACHVoid><ckinfo xsi:type="urn:ACHInfo"><acctid>TEST0</acctid><orderid>232553638</orderid><historyid>1.22</historyid><ipaddress/></ckinfo></processExtACHVoid></env:Body></env:Envelope>
|
|
10
|
-
D, [2012-05-31T17:38:19.087943 #11382] DEBUG -- : HTTPI executes HTTP POST using the net_http adapter
|
|
11
|
-
D, [2012-05-31T17:38:20.470828 #11382] DEBUG -- : SOAP response (status 200):
|
|
12
|
-
D, [2012-05-31T17:38:20.471119 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processExtACHVoidResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><processExtACHVoidReturn href="#id0"/></processExtACHVoidResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:ProcessResult" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MPTransProcess"><status xsi:type="xsd:string">Declined</status><result xsi:type="xsd:string">DECLINED:1100070009:Transaction does not belong to current merchant - denied:</result><historyid xsi:type="xsd:string">0</historyid><orderid xsi:type="xsd:string">0</orderid><refcode xsi:type="xsd:string"></refcode><authcode xsi:type="xsd:string">DECLINED:1100070009:Transaction does not belong to current merchant - denied:</authcode><total xsi:type="xsd:float">0.0</total><merchantordernumber xsi:type="xsd:string"></merchantordernumber><transdate xsi:type="xsd:dateTime">2012-05-31T21:36:06.670Z</transdate><paytype xsi:type="xsd:string"></paytype><duplicate xsi:type="xsd:int">0</duplicate></multiRef></soapenv:Body></soapenv:Envelope>
|
data/spec/junk~
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
D, [2012-05-31T17:38:14.680755 #11382] DEBUG -- : SOAP request: https://trans.myprismpay.com/MPWeb/services/TransactionService
|
|
2
|
-
D, [2012-05-31T17:38:14.680870 #11382] DEBUG -- : SOAPAction: "processExtACHSale", Content-Type: text/xml;charset=UTF-8, Content-Length: 661
|
|
3
|
-
D, [2012-05-31T17:38:14.680932 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://trans.myprismpay.com/MPWeb/services/TransactionService" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="urn:MPTransProcess"><env:Body><processExtACHSale><ckinfo xsi:type="urn:ACHInfo"><acctid>TEST0</acctid><ckname>George Jones</ckname><ckaba>9999999999</ckaba><ckacct>9999999999</ckacct><amount>1.22</amount><cktype>PPD</cktype><ckaccttypedesc>personal checking</ckaccttypedesc><companyname></companyname><ipaddress/></ckinfo></processExtACHSale></env:Body></env:Envelope>
|
|
4
|
-
D, [2012-05-31T17:38:14.744394 #11382] DEBUG -- : HTTPI executes HTTP POST using the net_http adapter
|
|
5
|
-
D, [2012-05-31T17:38:16.276318 #11382] DEBUG -- : SOAP response (status 200):
|
|
6
|
-
D, [2012-05-31T17:38:16.276510 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processExtACHSaleResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><processExtACHSaleReturn href="#id0"/></processExtACHSaleResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:ProcessResult" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MPTransProcess"><status xsi:type="xsd:string">Approved</status><result xsi:type="xsd:string">EXTACH:TEST:::232553638:::</result><historyid xsi:type="xsd:string">232553638</historyid><orderid xsi:type="xsd:string">168355524</orderid><refcode xsi:type="xsd:string">GETI</refcode><authcode xsi:type="xsd:string">EXTACH:TEST:::232553638:::</authcode><total xsi:type="xsd:float">1.22</total><merchantordernumber xsi:type="xsd:string"></merchantordernumber><transdate xsi:type="xsd:dateTime">2012-05-31T21:38:19.000Z</transdate><paytype xsi:type="xsd:string">Check</paytype><duplicate xsi:type="xsd:int">0</duplicate></multiRef></soapenv:Body></soapenv:Envelope>
|
|
7
|
-
D, [2012-05-31T17:38:16.329452 #11382] DEBUG -- : SOAP request: https://trans.myprismpay.com/MPWeb/services/TransactionService
|
|
8
|
-
D, [2012-05-31T17:38:16.329537 #11382] DEBUG -- : SOAPAction: "processExtACHSale", Content-Type: text/xml;charset=UTF-8, Content-Length: 661
|
|
9
|
-
D, [2012-05-31T17:38:16.329570 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://trans.myprismpay.com/MPWeb/services/TransactionService" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="urn:MPTransProcess"><env:Body><processExtACHSale><ckinfo xsi:type="urn:ACHInfo"><acctid>TEST0</acctid><ckname>George Jones</ckname><ckaba>9999999999</ckaba><ckacct>9999999999</ckacct><amount>1.22</amount><cktype>PPD</cktype><ckaccttypedesc>personal checking</ckaccttypedesc><companyname></companyname><ipaddress/></ckinfo></processExtACHSale></env:Body></env:Envelope>
|
|
10
|
-
D, [2012-05-31T17:38:16.329618 #11382] DEBUG -- : HTTPI executes HTTP POST using the net_http adapter
|
|
11
|
-
D, [2012-05-31T17:38:17.652547 #11382] DEBUG -- : SOAP response (status 200):
|
|
12
|
-
D, [2012-05-31T17:38:17.652834 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processExtACHSaleResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><processExtACHSaleReturn href="#id0"/></processExtACHSaleResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:ProcessResult" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MPTransProcess"><status xsi:type="xsd:string">Approved</status><result xsi:type="xsd:string">EXTACH:TEST:::232553638:::</result><historyid xsi:type="xsd:string">232553638</historyid><orderid xsi:type="xsd:string">168355524</orderid><refcode xsi:type="xsd:string">GETI</refcode><authcode xsi:type="xsd:string">EXTACH:TEST:::232553638:::</authcode><total xsi:type="xsd:float">1.22</total><merchantordernumber xsi:type="xsd:string"></merchantordernumber><transdate xsi:type="xsd:dateTime">2012-05-31T21:38:19.000Z</transdate><paytype xsi:type="xsd:string">Check</paytype><duplicate xsi:type="xsd:int">1</duplicate></multiRef></soapenv:Body></soapenv:Envelope>
|
|
13
|
-
.D, [2012-05-31T17:38:17.679327 #11382] DEBUG -- : SOAP request: https://trans.myprismpay.com/MPWeb/services/TransactionService
|
|
14
|
-
D, [2012-05-31T17:38:17.679432 #11382] DEBUG -- : SOAPAction: "processExtACHConsumerDisbursement", Content-Type: text/xml;charset=UTF-8, Content-Length: 693
|
|
15
|
-
D, [2012-05-31T17:38:17.679479 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://trans.myprismpay.com/MPWeb/services/TransactionService" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="urn:MPTransProcess"><env:Body><processExtACHConsumerDisbursement><ckinfo xsi:type="urn:ACHInfo"><acctid>TEST0</acctid><ckname>George Jones</ckname><ckaba>9999999999</ckaba><ckacct>9999999999</ckacct><amount>1.22</amount><cktype>PPD</cktype><ckaccttypedesc>personal checking</ckaccttypedesc><companyname></companyname><ipaddress/></ckinfo></processExtACHConsumerDisbursement></env:Body></env:Envelope>
|
|
16
|
-
D, [2012-05-31T17:38:17.679676 #11382] DEBUG -- : HTTPI executes HTTP POST using the net_http adapter
|
|
17
|
-
D, [2012-05-31T17:38:19.066572 #11382] DEBUG -- : SOAP response (status 200):
|
|
18
|
-
D, [2012-05-31T17:38:19.066763 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processExtACHConsumerDisbursementResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><processExtACHConsumerDisbursementReturn href="#id0"/></processExtACHConsumerDisbursementResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:ProcessResult" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MPTransProcess"><status xsi:type="xsd:string">Approved</status><result xsi:type="xsd:string">EXTACHCREDIT:TEST:::232553610:::</result><historyid xsi:type="xsd:string">232553610</historyid><orderid xsi:type="xsd:string">168355704</orderid><refcode xsi:type="xsd:string">GETI</refcode><authcode xsi:type="xsd:string">EXTACHCREDIT:TEST:::232553610:::</authcode><total xsi:type="xsd:float">1.22</total><merchantordernumber xsi:type="xsd:string"></merchantordernumber><transdate xsi:type="xsd:dateTime">2012-05-31T21:38:21.000Z</transdate><paytype xsi:type="xsd:string">Check</paytype><duplicate xsi:type="xsd:int">0</duplicate></multiRef></soapenv:Body></soapenv:Envelope>
|
|
19
|
-
.D, [2012-05-31T17:38:19.087772 #11382] DEBUG -- : SOAP request: https://trans.myprismpay.com/MPWeb/services/TransactionService
|
|
20
|
-
D, [2012-05-31T17:38:19.087858 #11382] DEBUG -- : SOAPAction: "processExtACHVoid", Content-Type: text/xml;charset=UTF-8, Content-Length: 517
|
|
21
|
-
D, [2012-05-31T17:38:19.087895 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://trans.myprismpay.com/MPWeb/services/TransactionService" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="urn:MPTransProcess"><env:Body><processExtACHVoid><ckinfo xsi:type="urn:ACHInfo"><acctid>TEST0</acctid><orderid>232553638</orderid><historyid>1.22</historyid><ipaddress/></ckinfo></processExtACHVoid></env:Body></env:Envelope>
|
|
22
|
-
D, [2012-05-31T17:38:19.087943 #11382] DEBUG -- : HTTPI executes HTTP POST using the net_http adapter
|
|
23
|
-
D, [2012-05-31T17:38:20.470828 #11382] DEBUG -- : SOAP response (status 200):
|
|
24
|
-
D, [2012-05-31T17:38:20.471119 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processExtACHVoidResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><processExtACHVoidReturn href="#id0"/></processExtACHVoidResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:ProcessResult" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MPTransProcess"><status xsi:type="xsd:string">Declined</status><result xsi:type="xsd:string">DECLINED:1100070009:Transaction does not belong to current merchant - denied:</result><historyid xsi:type="xsd:string">0</historyid><orderid xsi:type="xsd:string">0</orderid><refcode xsi:type="xsd:string"></refcode><authcode xsi:type="xsd:string">DECLINED:1100070009:Transaction does not belong to current merchant - denied:</authcode><total xsi:type="xsd:float">0.0</total><merchantordernumber xsi:type="xsd:string"></merchantordernumber><transdate xsi:type="xsd:dateTime">2012-05-31T21:36:06.670Z</transdate><paytype xsi:type="xsd:string"></paytype><duplicate xsi:type="xsd:int">0</duplicate></multiRef></soapenv:Body></soapenv:Envelope>
|
|
25
|
-
FD, [2012-05-31T17:38:20.500195 #11382] DEBUG -- : SOAP request: https://trans.myprismpay.com/MPWeb/services/TransactionService
|
|
26
|
-
D, [2012-05-31T17:38:20.500457 #11382] DEBUG -- : SOAPAction: "processExtACHCredit", Content-Type: text/xml;charset=UTF-8, Content-Length: 547
|
|
27
|
-
D, [2012-05-31T17:38:20.500586 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://trans.myprismpay.com/MPWeb/services/TransactionService" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="urn:MPTransProcess"><env:Body><processExtACHCredit><ckinfo xsi:type="urn:ACHInfo"><acctid>TEST0</acctid><orderid>168355524</orderid><historyid>232553638</historyid><amount>1.22</amount><ipaddress/></ckinfo></processExtACHCredit></env:Body></env:Envelope>
|
|
28
|
-
D, [2012-05-31T17:38:20.500749 #11382] DEBUG -- : HTTPI executes HTTP POST using the net_http adapter
|
|
29
|
-
D, [2012-05-31T17:38:21.904115 #11382] DEBUG -- : SOAP response (status 200):
|
|
30
|
-
D, [2012-05-31T17:38:21.904380 #11382] DEBUG -- : <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processExtACHCreditResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><processExtACHCreditReturn href="#id0"/></processExtACHCreditResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:ProcessResult" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:MPTransProcess"><status xsi:type="xsd:string">Approved</status><result xsi:type="xsd:string">EXTACHREFUND:TEST:::232553627:::</result><historyid xsi:type="xsd:string">232553627</historyid><orderid xsi:type="xsd:string">168355524</orderid><refcode xsi:type="xsd:string">GETI</refcode><authcode xsi:type="xsd:string">EXTACHREFUND:TEST:::232553627:::</authcode><total xsi:type="xsd:float">1.22</total><merchantordernumber xsi:type="xsd:string"></merchantordernumber><transdate xsi:type="xsd:dateTime">2012-05-31T21:38:24.000Z</transdate><paytype xsi:type="xsd:string">Check</paytype><duplicate xsi:type="xsd:int">0</duplicate></multiRef></soapenv:Body></soapenv:Envelope>
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
Failures:
|
|
34
|
-
|
|
35
|
-
1) PrismPay::PrismPay ext_ach_sale should void a previous transaction
|
|
36
|
-
Failure/Error: response.body[:multi_ref][:status].should =~ /Approved/
|
|
37
|
-
expected: /Approved/
|
|
38
|
-
got: "Declined" (using =~)
|
|
39
|
-
Diff:
|
|
40
|
-
@@ -1,2 +1,2 @@
|
|
41
|
-
-/Approved/
|
|
42
|
-
+"Declined"
|
|
43
|
-
# ./spec/prismpay_spec.rb:411:in `block (2 levels) in <top (required)>'
|
|
44
|
-
|
|
45
|
-
Finished in 7.26 seconds
|
|
46
|
-
4 examples, 1 failure
|
|
47
|
-
|
|
48
|
-
Failed examples:
|
|
49
|
-
|
|
50
|
-
rspec ./spec/prismpay_spec.rb:403 # PrismPay::PrismPay ext_ach_sale should v
|