workarea-payware_connect 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +20 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
- data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/ci.yml +54 -0
- data/.gitignore +13 -0
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +63 -0
- data/CODE_OF_CONDUCT.md +3 -0
- data/CONTRIBUTING.md +3 -0
- data/Gemfile +9 -0
- data/LICENSE.md +3 -0
- data/README.md +53 -0
- data/Rakefile +54 -0
- data/app/models/workarea/payment/authorize/credit_card.decorator +37 -0
- data/app/models/workarea/payment/capture/credit_card.decorator +14 -0
- data/app/models/workarea/payment/payware_credit_card.decorator +24 -0
- data/app/models/workarea/payment/purchase/credit_card.decorator +37 -0
- data/app/models/workarea/payment/refund/credit_card.decorator +14 -0
- data/app/models/workarea/payment/store_credit_card.decorator +13 -0
- data/app/workers/workarea/save_user_order_details.decorator +33 -0
- data/bin/rails +18 -0
- data/config/initializers/00_defaults.rb +1 -0
- data/doc/PWCTestAccount_WorldPay ecom.pages +0 -0
- data/doc/validation/(Completed v2)PAYware Connect Validation Worksheet 2015 V2 .doc +0 -0
- data/doc/validation/(Completed v3)PAYware Connect Validation Worksheet 2015 V2 .doc +0 -0
- data/doc/validation/PAYware Connect Validation Letter Weblinc 09-11-2015.pdf +0 -0
- data/doc/validation/PAYware Connect Validation Letter Weblinc 10-21-2015.pdf +0 -0
- data/lib/active_merchant/billing/bogus_payware_connect_gateway.rb +130 -0
- data/lib/active_merchant/billing/payware_connect_gateway.rb +137 -0
- data/lib/active_merchant/billing/payware_connect_gateway/actions/authorize.rb +63 -0
- data/lib/active_merchant/billing/payware_connect_gateway/actions/capture.rb +26 -0
- data/lib/active_merchant/billing/payware_connect_gateway/actions/purchase.rb +59 -0
- data/lib/active_merchant/billing/payware_connect_gateway/actions/refund.rb +29 -0
- data/lib/active_merchant/billing/payware_connect_gateway/actions/void.rb +20 -0
- data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/add_contract.rb +9 -0
- data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/add_customer.rb +9 -0
- data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/add_customer_and_contract.rb +10 -0
- data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/update_contract.rb +9 -0
- data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/update_customer.rb +9 -0
- data/lib/active_merchant/billing/payware_connect_gateway/admin_xml_builder.rb +105 -0
- data/lib/active_merchant/billing/payware_connect_gateway/xml_builder.rb +35 -0
- data/lib/active_merchant/billing/payware_response.rb +9 -0
- data/lib/validation.rb +25 -0
- data/lib/workarea/payware_connect.rb +43 -0
- data/lib/workarea/payware_connect/engine.rb +8 -0
- data/lib/workarea/payware_connect/version.rb +5 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/config/manifest.js +4 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +34 -0
- data/test/dummy/bin/update +29 -0
- data/test/dummy/config.ru +5 -0
- data/test/dummy/config/application.rb +24 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/cable.yml +9 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +56 -0
- data/test/dummy/config/environments/production.rb +86 -0
- data/test/dummy/config/environments/test.rb +44 -0
- data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/new_framework_defaults.rb +23 -0
- data/test/dummy/config/initializers/workarea.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/puma.rb +47 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/db/seeds.rb +3 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/workarea/storefront/checkout_side_effects_integration_test.decorator +44 -0
- data/test/lib/active_merchant/billing/payware_connect_gateway_test.rb +280 -0
- data/test/models/workarea/payment/authorize/credit_card_test.decorator +47 -0
- data/test/models/workarea/payment/capture/credit_card_test.decorator +33 -0
- data/test/models/workarea/payment/credit_card_integration_test.decorator +25 -0
- data/test/models/workarea/payment/payware_credit_card_test.rb +44 -0
- data/test/models/workarea/payment/purchase/credit_card_test.decorator +54 -0
- data/test/models/workarea/payment/refund/credit_card_test.decorator +33 -0
- data/test/models/workarea/payment/store_credit_card_test.decorator +10 -0
- data/test/support/workarea/payware_connect_gateway_vcr_config.rb +24 -0
- data/test/system/workarea/admin/payment_transactions_system_test.decorator +37 -0
- data/test/test_helper.rb +12 -0
- data/test/vcr_cassettes/credit_card/auth_capture.yml +127 -0
- data/test/vcr_cassettes/credit_card/auth_void.yml +126 -0
- data/test/vcr_cassettes/credit_card/purchase_void.yml +126 -0
- data/test/vcr_cassettes/credit_card/store_auth.yml +67 -0
- data/test/vcr_cassettes/credit_card/store_purchase.yml +67 -0
- data/test/vcr_cassettes/payware/add_contract.yml +99 -0
- data/test/vcr_cassettes/payware/add_customer.yml +52 -0
- data/test/vcr_cassettes/payware/authorize_credit_card.yml +67 -0
- data/test/vcr_cassettes/payware/authorize_customer_and_contract.yml +161 -0
- data/test/vcr_cassettes/payware/authorize_for_0_credit_card.yml +67 -0
- data/test/vcr_cassettes/payware/authorize_for_0_troutd.yml +130 -0
- data/test/vcr_cassettes/payware/authorize_troutd.yml +130 -0
- data/test/vcr_cassettes/payware/capture.yml +127 -0
- data/test/vcr_cassettes/payware/refund.yml +223 -0
- data/test/vcr_cassettes/payware/refund_troutd.yml +128 -0
- data/test/vcr_cassettes/payware/void_authorization.yml +126 -0
- data/test/workers/workarea/save_user_order_details_test.decorator +56 -0
- data/workarea-payware_connect.gemspec +18 -0
- metadata +190 -0
@@ -0,0 +1,223 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cert1.ipcharge.net/ipcadminapi/RH.ipc
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: <AdminRequest><AdminHeader><RequestType>IPCRB_ADMIN</RequestType><FunctionType>ADDON</FunctionType><CommandType>ADDON_NEW_CUSTOMER</CommandType></AdminHeader><AdminBody><HEADER><Client_ID>17270300010001</Client_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USERID>apiuser</USERID><USERPWD>6GHMg7ur</USERPWD></HEADER><DETAIL><RECORD><CUSTOMER
|
9
|
+
Merchant_Customer_ID="14208"><Company_Name/><First_Name>Mike</First_Name><Last_Name>Dalton</Last_Name><Address_1>22
|
10
|
+
S. 3rd St.</Address_1><Address_2/><City>Philadelphia</City><Zip>19406</Zip><Pri_Phone>2155555555</Pri_Phone><Pri_Email>mdalton@weblinc.com</Pri_Email></CUSTOMER></RECORD></DETAIL></AdminBody></AdminRequest>
|
11
|
+
headers:
|
12
|
+
Content-Type:
|
13
|
+
- text/xml
|
14
|
+
Connection:
|
15
|
+
- close
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
User-Agent:
|
21
|
+
- Ruby
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Content-Type:
|
32
|
+
- text/html; charset=utf-8
|
33
|
+
Expires:
|
34
|
+
- "-1"
|
35
|
+
Vary:
|
36
|
+
- Accept-Encoding
|
37
|
+
Server:
|
38
|
+
- Microsoft-IIS/7.5
|
39
|
+
X-Aspnet-Version:
|
40
|
+
- 4.0.30319
|
41
|
+
Date:
|
42
|
+
- Thu, 16 May 2019 16:00:51 GMT
|
43
|
+
Connection:
|
44
|
+
- close
|
45
|
+
Content-Length:
|
46
|
+
- '177'
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: "<AdminResponse>\r\n<Status_Code>1</Status_Code>\r\n<Message>SUCCESS</Message></AdminResponse>\r\n"
|
50
|
+
http_version:
|
51
|
+
recorded_at: Thu, 16 May 2019 16:00:51 GMT
|
52
|
+
- request:
|
53
|
+
method: post
|
54
|
+
uri: https://cert1.ipcharge.net/ipcadminapi/RH.ipc
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: "<AdminRequest><AdminHeader><RequestType>IPCRB_ADMIN</RequestType><FunctionType>ADDON</FunctionType><CommandType>ADDON_NEW_CONTRACT</CommandType></AdminHeader><AdminBody><HEADER><Client_ID>17270300010001</Client_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USERID>apiuser</USERID><USERPWD>6GHMg7ur</USERPWD></HEADER><DETAIL><RECORD><CONTRACT><Merchant_Customer_ID>14208</Merchant_Customer_ID><Merchant_Contract_ID>47570</Merchant_Contract_ID><Card_Type>VISA</Card_Type><Pri_Account_Number>4111111111111111</Pri_Account_Number><Pri_Exp_Month>12</Pri_Exp_Month><Pri_Exp_Year>20</Pri_Exp_Year><fAlt_Payment>false</fAlt_Payment></CONTRACT></RECORD></DETAIL></AdminBody></AdminRequest>"
|
58
|
+
headers:
|
59
|
+
Content-Type:
|
60
|
+
- text/xml
|
61
|
+
Connection:
|
62
|
+
- close
|
63
|
+
Accept-Encoding:
|
64
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
65
|
+
Accept:
|
66
|
+
- "*/*"
|
67
|
+
User-Agent:
|
68
|
+
- Ruby
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 200
|
72
|
+
message: OK
|
73
|
+
headers:
|
74
|
+
Cache-Control:
|
75
|
+
- no-cache, no-store
|
76
|
+
Pragma:
|
77
|
+
- no-cache
|
78
|
+
Content-Type:
|
79
|
+
- text/html; charset=utf-8
|
80
|
+
Expires:
|
81
|
+
- "-1"
|
82
|
+
Vary:
|
83
|
+
- Accept-Encoding
|
84
|
+
Server:
|
85
|
+
- Microsoft-IIS/7.5
|
86
|
+
X-Aspnet-Version:
|
87
|
+
- 4.0.30319
|
88
|
+
Date:
|
89
|
+
- Thu, 16 May 2019 16:00:50 GMT
|
90
|
+
Connection:
|
91
|
+
- close
|
92
|
+
Content-Length:
|
93
|
+
- '177'
|
94
|
+
body:
|
95
|
+
encoding: ASCII-8BIT
|
96
|
+
string: "<AdminResponse>\r\n<Status_Code>1</Status_Code>\r\n<Message>SUCCESS</Message></AdminResponse>\r\n"
|
97
|
+
http_version:
|
98
|
+
recorded_at: Thu, 16 May 2019 16:00:52 GMT
|
99
|
+
- request:
|
100
|
+
method: post
|
101
|
+
uri: https://cert.api.vfipayna.com/IPCHAPI/RH.ASPX
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: "<TRANSACTION><FUNCTION_TYPE>PAYMENT</FUNCTION_TYPE><PAYMENT_TYPE>CREDIT</PAYMENT_TYPE><CLIENT_ID>17270300010001</CLIENT_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USER_ID>apiuser</USER_ID><USER_PW>6GHMg7ur</USER_PW><COMMAND>PRE_AUTH</COMMAND><TRANS_AMOUNT>10.00</TRANS_AMOUNT><PRESENT_FLAG>1</PRESENT_FLAG><RBCUSTOMER_ID>14208</RBCUSTOMER_ID><RBCONTRACT_ID>47570</RBCONTRACT_ID></TRANSACTION>"
|
105
|
+
headers:
|
106
|
+
Content-Type:
|
107
|
+
- text/xml
|
108
|
+
Connection:
|
109
|
+
- close
|
110
|
+
Accept-Encoding:
|
111
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
+
Accept:
|
113
|
+
- "*/*"
|
114
|
+
User-Agent:
|
115
|
+
- Ruby
|
116
|
+
response:
|
117
|
+
status:
|
118
|
+
code: 200
|
119
|
+
message: OK
|
120
|
+
headers:
|
121
|
+
Cache-Control:
|
122
|
+
- no-store
|
123
|
+
Pragma:
|
124
|
+
- no-cache
|
125
|
+
Content-Type:
|
126
|
+
- text/xml; charset=utf-8
|
127
|
+
Expires:
|
128
|
+
- '0'
|
129
|
+
Vary:
|
130
|
+
- Accept-Encoding
|
131
|
+
Server:
|
132
|
+
- NOT_AUTHORIZED
|
133
|
+
X-Aspnet-Version:
|
134
|
+
- NOT_AUTHORIZED
|
135
|
+
Strict-Transport-Security:
|
136
|
+
- max-age=31536000; includeSubDomains
|
137
|
+
X-Frame-Options:
|
138
|
+
- sameorigin
|
139
|
+
X-Xss-Protection:
|
140
|
+
- 1; mode=block
|
141
|
+
Date:
|
142
|
+
- Thu, 16 May 2019 16:00:51 GMT
|
143
|
+
Connection:
|
144
|
+
- close
|
145
|
+
Content-Length:
|
146
|
+
- '534'
|
147
|
+
body:
|
148
|
+
encoding: ASCII-8BIT
|
149
|
+
string: "<RESPONSE>\r\n <AUTH_CODE>TAS576</AUTH_CODE>\r\n <AVS_CODE>N</AVS_CODE>\r\n
|
150
|
+
\ <CLIENT_ID>17270300010001</CLIENT_ID>\r\n <COMMAND>PRE_AUTH</COMMAND>\r\n
|
151
|
+
\ <CTROUTD>4</CTROUTD>\r\n <INTRN_SEQ_NUM>95856</INTRN_SEQ_NUM>\r\n
|
152
|
+
\ <MERCHID>888000000830</MERCHID>\r\n <PAYMENT_MEDIA>VISA</PAYMENT_MEDIA>\r\n
|
153
|
+
\ <PAYMENT_TYPE>CREDIT</PAYMENT_TYPE>\r\n <REFERENCE>913616501789</REFERENCE>\r\n
|
154
|
+
\ <RESPONSE_TEXT>NO MATCH </RESPONSE_TEXT>\r\n <RESULT>APPROVED</RESULT>\r\n
|
155
|
+
\ <RESULT_CODE>5</RESULT_CODE>\r\n <TERMID>1515</TERMID>\r\n
|
156
|
+
\ <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>\r\n <TRANS_AMOUNT>10.00</TRANS_AMOUNT>\r\n
|
157
|
+
\ <TRANS_DATE>2019.05.16</TRANS_DATE>\r\n <TRANS_SEQ_NUM>5</TRANS_SEQ_NUM>\r\n
|
158
|
+
\ <TRANS_TIME>12:00:51</TRANS_TIME>\r\n <TROUTD>95856</TROUTD>\r\n</RESPONSE>"
|
159
|
+
http_version:
|
160
|
+
recorded_at: Thu, 16 May 2019 16:00:54 GMT
|
161
|
+
- request:
|
162
|
+
method: post
|
163
|
+
uri: https://cert.api.vfipayna.com/IPCHAPI/RH.ASPX
|
164
|
+
body:
|
165
|
+
encoding: UTF-8
|
166
|
+
string: "<TRANSACTION><FUNCTION_TYPE>PAYMENT</FUNCTION_TYPE><PAYMENT_TYPE>CREDIT</PAYMENT_TYPE><CLIENT_ID>17270300010001</CLIENT_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USER_ID>apiuser</USER_ID><USER_PW>6GHMg7ur</USER_PW><COMMAND>CREDIT</COMMAND><TRANS_AMOUNT>10.00</TRANS_AMOUNT><RBCUSTOMER_ID>14208</RBCUSTOMER_ID><RBCONTRACT_ID>47570</RBCONTRACT_ID></TRANSACTION>"
|
167
|
+
headers:
|
168
|
+
Content-Type:
|
169
|
+
- text/xml
|
170
|
+
Connection:
|
171
|
+
- close
|
172
|
+
Accept-Encoding:
|
173
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
174
|
+
Accept:
|
175
|
+
- "*/*"
|
176
|
+
User-Agent:
|
177
|
+
- Ruby
|
178
|
+
response:
|
179
|
+
status:
|
180
|
+
code: 200
|
181
|
+
message: OK
|
182
|
+
headers:
|
183
|
+
Cache-Control:
|
184
|
+
- no-store
|
185
|
+
Pragma:
|
186
|
+
- no-cache
|
187
|
+
Content-Type:
|
188
|
+
- text/xml; charset=utf-8
|
189
|
+
Expires:
|
190
|
+
- '0'
|
191
|
+
Vary:
|
192
|
+
- Accept-Encoding
|
193
|
+
Server:
|
194
|
+
- NOT_AUTHORIZED
|
195
|
+
X-Aspnet-Version:
|
196
|
+
- NOT_AUTHORIZED
|
197
|
+
Strict-Transport-Security:
|
198
|
+
- max-age=31536000; includeSubDomains
|
199
|
+
X-Frame-Options:
|
200
|
+
- sameorigin
|
201
|
+
X-Xss-Protection:
|
202
|
+
- 1; mode=block
|
203
|
+
Date:
|
204
|
+
- Thu, 16 May 2019 16:00:56 GMT
|
205
|
+
Connection:
|
206
|
+
- close
|
207
|
+
Content-Length:
|
208
|
+
- '527'
|
209
|
+
body:
|
210
|
+
encoding: ASCII-8BIT
|
211
|
+
string: "<RESPONSE>\r\n <AUTH_CODE>TAS578</AUTH_CODE>\r\n <AVS_CODE>N</AVS_CODE>\r\n
|
212
|
+
\ <CLIENT_ID>17270300010001</CLIENT_ID>\r\n <COMMAND>CREDIT</COMMAND>\r\n
|
213
|
+
\ <CTROUTD>5</CTROUTD>\r\n <INTRN_SEQ_NUM>95857</INTRN_SEQ_NUM>\r\n
|
214
|
+
\ <MERCHID>888000000830</MERCHID>\r\n <PAYMENT_MEDIA>VISA</PAYMENT_MEDIA>\r\n
|
215
|
+
\ <PAYMENT_TYPE>CREDIT</PAYMENT_TYPE>\r\n <REFERENCE>913616501791</REFERENCE>\r\n
|
216
|
+
\ <RESPONSE_TEXT>NO MATCH </RESPONSE_TEXT>\r\n <RESULT>CAPTURED</RESULT>\r\n
|
217
|
+
\ <RESULT_CODE>4</RESULT_CODE>\r\n <TERMID>1515</TERMID>\r\n
|
218
|
+
\ <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>\r\n <TRANS_AMOUNT>10.00</TRANS_AMOUNT>\r\n
|
219
|
+
\ <TRANS_DATE>2019.05.16</TRANS_DATE>\r\n <TRANS_SEQ_NUM>6</TRANS_SEQ_NUM>\r\n
|
220
|
+
\ <TRANS_TIME>12:00:53</TRANS_TIME>\r\n <TROUTD>95857</TROUTD>\r\n</RESPONSE>"
|
221
|
+
http_version:
|
222
|
+
recorded_at: Thu, 16 May 2019 16:00:55 GMT
|
223
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,128 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cert.api.vfipayna.com/IPCHAPI/RH.ASPX
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "<TRANSACTION><FUNCTION_TYPE>PAYMENT</FUNCTION_TYPE><PAYMENT_TYPE>CREDIT</PAYMENT_TYPE><CLIENT_ID>17270300010001</CLIENT_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USER_ID>apiuser</USER_ID><USER_PW>6GHMg7ur</USER_PW><COMMAND>PRE_AUTH</COMMAND><TRANS_AMOUNT>10.00</TRANS_AMOUNT><PRESENT_FLAG>1</PRESENT_FLAG><CARDHOLDER>Mike
|
9
|
+
Dalton</CARDHOLDER><CUSTOMER_STREET>22 S. 3rd St.</CUSTOMER_STREET><CUSTOMER_CITY>Philadelphia</CUSTOMER_CITY><CUSTOMER_STATE>PA</CUSTOMER_STATE><CUSTOMER_ZIP>19406</CUSTOMER_ZIP><ACCT_NUM>4111111111111111</ACCT_NUM><CVV2>999</CVV2><EXP_MONTH>12</EXP_MONTH><EXP_YEAR>20</EXP_YEAR></TRANSACTION>"
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- text/xml
|
13
|
+
Connection:
|
14
|
+
- close
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
Accept:
|
18
|
+
- "*/*"
|
19
|
+
User-Agent:
|
20
|
+
- Ruby
|
21
|
+
response:
|
22
|
+
status:
|
23
|
+
code: 200
|
24
|
+
message: OK
|
25
|
+
headers:
|
26
|
+
Cache-Control:
|
27
|
+
- no-store
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Content-Type:
|
31
|
+
- text/xml; charset=utf-8
|
32
|
+
Expires:
|
33
|
+
- '0'
|
34
|
+
Vary:
|
35
|
+
- Accept-Encoding
|
36
|
+
Server:
|
37
|
+
- NOT_AUTHORIZED
|
38
|
+
X-Aspnet-Version:
|
39
|
+
- NOT_AUTHORIZED
|
40
|
+
Strict-Transport-Security:
|
41
|
+
- max-age=31536000; includeSubDomains
|
42
|
+
X-Frame-Options:
|
43
|
+
- sameorigin
|
44
|
+
X-Xss-Protection:
|
45
|
+
- 1; mode=block
|
46
|
+
Date:
|
47
|
+
- Thu, 16 May 2019 16:00:48 GMT
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
Content-Length:
|
51
|
+
- '564'
|
52
|
+
body:
|
53
|
+
encoding: ASCII-8BIT
|
54
|
+
string: "<RESPONSE>\r\n <AUTH_CODE>TAS571</AUTH_CODE>\r\n <AVS_CODE>N</AVS_CODE>\r\n
|
55
|
+
\ <CLIENT_ID>17270300010001</CLIENT_ID>\r\n <COMMAND>PRE_AUTH</COMMAND>\r\n
|
56
|
+
\ <CTROUTD>3</CTROUTD>\r\n <CVV2_CODE>M</CVV2_CODE>\r\n <INTRN_SEQ_NUM>95854</INTRN_SEQ_NUM>\r\n
|
57
|
+
\ <MERCHID>888000000830</MERCHID>\r\n <PAYMENT_MEDIA>VISA</PAYMENT_MEDIA>\r\n
|
58
|
+
\ <PAYMENT_TYPE>CREDIT</PAYMENT_TYPE>\r\n <REFERENCE>913616501784</REFERENCE>\r\n
|
59
|
+
\ <RESPONSE_TEXT>NO MATCH </RESPONSE_TEXT>\r\n <RESULT>APPROVED</RESULT>\r\n
|
60
|
+
\ <RESULT_CODE>5</RESULT_CODE>\r\n <TERMID>1515</TERMID>\r\n
|
61
|
+
\ <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>\r\n <TRANS_AMOUNT>10.00</TRANS_AMOUNT>\r\n
|
62
|
+
\ <TRANS_DATE>2019.05.16</TRANS_DATE>\r\n <TRANS_SEQ_NUM>3</TRANS_SEQ_NUM>\r\n
|
63
|
+
\ <TRANS_TIME>12:00:47</TRANS_TIME>\r\n <TROUTD>95854</TROUTD>\r\n
|
64
|
+
\ <LPTOKEN>97</LPTOKEN>\r\n</RESPONSE>"
|
65
|
+
http_version:
|
66
|
+
recorded_at: Thu, 16 May 2019 16:00:49 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://cert.api.vfipayna.com/IPCHAPI/RH.ASPX
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: "<TRANSACTION><FUNCTION_TYPE>PAYMENT</FUNCTION_TYPE><PAYMENT_TYPE>CREDIT</PAYMENT_TYPE><CLIENT_ID>17270300010001</CLIENT_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USER_ID>apiuser</USER_ID><USER_PW>6GHMg7ur</USER_PW><COMMAND>CREDIT</COMMAND><TRANS_AMOUNT>10.00</TRANS_AMOUNT><TROUTD>95854</TROUTD></TRANSACTION>"
|
73
|
+
headers:
|
74
|
+
Content-Type:
|
75
|
+
- text/xml
|
76
|
+
Connection:
|
77
|
+
- close
|
78
|
+
Accept-Encoding:
|
79
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
80
|
+
Accept:
|
81
|
+
- "*/*"
|
82
|
+
User-Agent:
|
83
|
+
- Ruby
|
84
|
+
response:
|
85
|
+
status:
|
86
|
+
code: 200
|
87
|
+
message: OK
|
88
|
+
headers:
|
89
|
+
Cache-Control:
|
90
|
+
- no-store
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
Content-Type:
|
94
|
+
- text/xml; charset=utf-8
|
95
|
+
Expires:
|
96
|
+
- '0'
|
97
|
+
Vary:
|
98
|
+
- Accept-Encoding
|
99
|
+
Server:
|
100
|
+
- NOT_AUTHORIZED
|
101
|
+
X-Aspnet-Version:
|
102
|
+
- NOT_AUTHORIZED
|
103
|
+
Strict-Transport-Security:
|
104
|
+
- max-age=31536000; includeSubDomains
|
105
|
+
X-Frame-Options:
|
106
|
+
- sameorigin
|
107
|
+
X-Xss-Protection:
|
108
|
+
- 1; mode=block
|
109
|
+
Date:
|
110
|
+
- Thu, 16 May 2019 16:00:51 GMT
|
111
|
+
Connection:
|
112
|
+
- close
|
113
|
+
Content-Length:
|
114
|
+
- '520'
|
115
|
+
body:
|
116
|
+
encoding: ASCII-8BIT
|
117
|
+
string: "<RESPONSE>\r\n <AUTH_CODE>TAS573</AUTH_CODE>\r\n <CLIENT_ID>17270300010001</CLIENT_ID>\r\n
|
118
|
+
\ <COMMAND>CREDIT</COMMAND>\r\n <CTROUTD>3</CTROUTD>\r\n <INTRN_SEQ_NUM>95855</INTRN_SEQ_NUM>\r\n
|
119
|
+
\ <MERCHID>888000000830</MERCHID>\r\n <PAYMENT_MEDIA>VISA</PAYMENT_MEDIA>\r\n
|
120
|
+
\ <PAYMENT_TYPE>CREDIT</PAYMENT_TYPE>\r\n <REFERENCE>913616501786</REFERENCE>\r\n
|
121
|
+
\ <RESPONSE_TEXT>APPROVAL TAS573 </RESPONSE_TEXT>\r\n <RESULT>CAPTURED</RESULT>\r\n
|
122
|
+
\ <RESULT_CODE>4</RESULT_CODE>\r\n <TERMID>1515</TERMID>\r\n
|
123
|
+
\ <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>\r\n <TRANS_AMOUNT>10.00</TRANS_AMOUNT>\r\n
|
124
|
+
\ <TRANS_DATE>2019.05.16</TRANS_DATE>\r\n <TRANS_SEQ_NUM>4</TRANS_SEQ_NUM>\r\n
|
125
|
+
\ <TRANS_TIME>12:00:48</TRANS_TIME>\r\n <TROUTD>95854</TROUTD>\r\n</RESPONSE>"
|
126
|
+
http_version:
|
127
|
+
recorded_at: Thu, 16 May 2019 16:00:50 GMT
|
128
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,126 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://cert.api.vfipayna.com/IPCHAPI/RH.ASPX
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "<TRANSACTION><FUNCTION_TYPE>PAYMENT</FUNCTION_TYPE><PAYMENT_TYPE>CREDIT</PAYMENT_TYPE><CLIENT_ID>17270300010001</CLIENT_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USER_ID>apiuser</USER_ID><USER_PW>6GHMg7ur</USER_PW><COMMAND>PRE_AUTH</COMMAND><TRANS_AMOUNT>1.00</TRANS_AMOUNT><PRESENT_FLAG>1</PRESENT_FLAG><CARDHOLDER>Mike
|
9
|
+
Dalton</CARDHOLDER><CUSTOMER_STREET>22 S. 3rd St.</CUSTOMER_STREET><CUSTOMER_CITY>Philadelphia</CUSTOMER_CITY><CUSTOMER_STATE>PA</CUSTOMER_STATE><CUSTOMER_ZIP>19406</CUSTOMER_ZIP><ACCT_NUM>4111111111111111</ACCT_NUM><CVV2>999</CVV2><EXP_MONTH>12</EXP_MONTH><EXP_YEAR>20</EXP_YEAR></TRANSACTION>"
|
10
|
+
headers:
|
11
|
+
Content-Type:
|
12
|
+
- text/xml
|
13
|
+
Connection:
|
14
|
+
- close
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
Accept:
|
18
|
+
- "*/*"
|
19
|
+
User-Agent:
|
20
|
+
- Ruby
|
21
|
+
response:
|
22
|
+
status:
|
23
|
+
code: 200
|
24
|
+
message: OK
|
25
|
+
headers:
|
26
|
+
Cache-Control:
|
27
|
+
- no-store
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Content-Type:
|
31
|
+
- text/xml; charset=utf-8
|
32
|
+
Expires:
|
33
|
+
- '0'
|
34
|
+
Vary:
|
35
|
+
- Accept-Encoding
|
36
|
+
Server:
|
37
|
+
- NOT_AUTHORIZED
|
38
|
+
X-Aspnet-Version:
|
39
|
+
- NOT_AUTHORIZED
|
40
|
+
Strict-Transport-Security:
|
41
|
+
- max-age=31536000; includeSubDomains
|
42
|
+
X-Frame-Options:
|
43
|
+
- sameorigin
|
44
|
+
X-Xss-Protection:
|
45
|
+
- 1; mode=block
|
46
|
+
Date:
|
47
|
+
- Thu, 16 May 2019 16:01:03 GMT
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
Content-Length:
|
51
|
+
- '565'
|
52
|
+
body:
|
53
|
+
encoding: ASCII-8BIT
|
54
|
+
string: "<RESPONSE>\r\n <AUTH_CODE>TAS589</AUTH_CODE>\r\n <AVS_CODE>N</AVS_CODE>\r\n
|
55
|
+
\ <CLIENT_ID>17270300010001</CLIENT_ID>\r\n <COMMAND>PRE_AUTH</COMMAND>\r\n
|
56
|
+
\ <CTROUTD>12</CTROUTD>\r\n <CVV2_CODE>M</CVV2_CODE>\r\n <INTRN_SEQ_NUM>95864</INTRN_SEQ_NUM>\r\n
|
57
|
+
\ <MERCHID>888000000830</MERCHID>\r\n <PAYMENT_MEDIA>VISA</PAYMENT_MEDIA>\r\n
|
58
|
+
\ <PAYMENT_TYPE>CREDIT</PAYMENT_TYPE>\r\n <REFERENCE>913616501805</REFERENCE>\r\n
|
59
|
+
\ <RESPONSE_TEXT>NO MATCH </RESPONSE_TEXT>\r\n <RESULT>APPROVED</RESULT>\r\n
|
60
|
+
\ <RESULT_CODE>5</RESULT_CODE>\r\n <TERMID>1515</TERMID>\r\n
|
61
|
+
\ <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>\r\n <TRANS_AMOUNT>1.00</TRANS_AMOUNT>\r\n
|
62
|
+
\ <TRANS_DATE>2019.05.16</TRANS_DATE>\r\n <TRANS_SEQ_NUM>13</TRANS_SEQ_NUM>\r\n
|
63
|
+
\ <TRANS_TIME>12:01:03</TRANS_TIME>\r\n <TROUTD>95864</TROUTD>\r\n
|
64
|
+
\ <LPTOKEN>97</LPTOKEN>\r\n</RESPONSE>"
|
65
|
+
http_version:
|
66
|
+
recorded_at: Thu, 16 May 2019 16:01:05 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://cert.api.vfipayna.com/IPCHAPI/RH.ASPX
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: "<TRANSACTION><FUNCTION_TYPE>PAYMENT</FUNCTION_TYPE><PAYMENT_TYPE>CREDIT</PAYMENT_TYPE><CLIENT_ID>17270300010001</CLIENT_ID><MERCHANTKEY>49BC6225-4B49-4585-8D34-07DCA05CF3937FD6C525-8AEE-4916-BEEC-BDB</MERCHANTKEY><USER_ID>apiuser</USER_ID><USER_PW>6GHMg7ur</USER_PW><COMMAND>VOID</COMMAND><TROUTD>95864</TROUTD></TRANSACTION>"
|
73
|
+
headers:
|
74
|
+
Content-Type:
|
75
|
+
- text/xml
|
76
|
+
Connection:
|
77
|
+
- close
|
78
|
+
Accept-Encoding:
|
79
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
80
|
+
Accept:
|
81
|
+
- "*/*"
|
82
|
+
User-Agent:
|
83
|
+
- Ruby
|
84
|
+
response:
|
85
|
+
status:
|
86
|
+
code: 200
|
87
|
+
message: OK
|
88
|
+
headers:
|
89
|
+
Cache-Control:
|
90
|
+
- no-store
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
Content-Type:
|
94
|
+
- text/xml; charset=utf-8
|
95
|
+
Expires:
|
96
|
+
- '0'
|
97
|
+
Vary:
|
98
|
+
- Accept-Encoding
|
99
|
+
Server:
|
100
|
+
- NOT_AUTHORIZED
|
101
|
+
X-Aspnet-Version:
|
102
|
+
- NOT_AUTHORIZED
|
103
|
+
Strict-Transport-Security:
|
104
|
+
- max-age=31536000; includeSubDomains
|
105
|
+
X-Frame-Options:
|
106
|
+
- sameorigin
|
107
|
+
X-Xss-Protection:
|
108
|
+
- 1; mode=block
|
109
|
+
Date:
|
110
|
+
- Thu, 16 May 2019 16:01:07 GMT
|
111
|
+
Connection:
|
112
|
+
- close
|
113
|
+
Content-Length:
|
114
|
+
- '432'
|
115
|
+
body:
|
116
|
+
encoding: ASCII-8BIT
|
117
|
+
string: "<RESPONSE>\r\n <AUTH_CODE>TAS589</AUTH_CODE>\r\n <CLIENT_ID>17270300010001</CLIENT_ID>\r\n
|
118
|
+
\ <COMMAND>VOID</COMMAND>\r\n <CTROUTD>12</CTROUTD>\r\n <INTRN_SEQ_NUM>95865</INTRN_SEQ_NUM>\r\n
|
119
|
+
\ <PAYMENT_MEDIA>VISA</PAYMENT_MEDIA>\r\n <PAYMENT_TYPE>CREDIT</PAYMENT_TYPE>\r\n
|
120
|
+
\ <RESULT>VOIDED</RESULT>\r\n <RESULT_CODE>7</RESULT_CODE>\r\n
|
121
|
+
\ <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>\r\n <TRANS_AMOUNT>1.00</TRANS_AMOUNT>\r\n
|
122
|
+
\ <TRANS_DATE>2019.05.16</TRANS_DATE>\r\n <TRANS_SEQ_NUM>15</TRANS_SEQ_NUM>\r\n
|
123
|
+
\ <TRANS_TIME>12:01:04</TRANS_TIME>\r\n <TROUTD>95864</TROUTD>\r\n</RESPONSE>"
|
124
|
+
http_version:
|
125
|
+
recorded_at: Thu, 16 May 2019 16:01:06 GMT
|
126
|
+
recorded_with: VCR 2.9.3
|