workarea-payware_connect 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +20 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  4. data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  6. data/.github/workflows/ci.yml +54 -0
  7. data/.gitignore +13 -0
  8. data/.rubocop.yml +2 -0
  9. data/CHANGELOG.md +63 -0
  10. data/CODE_OF_CONDUCT.md +3 -0
  11. data/CONTRIBUTING.md +3 -0
  12. data/Gemfile +9 -0
  13. data/LICENSE.md +3 -0
  14. data/README.md +53 -0
  15. data/Rakefile +54 -0
  16. data/app/models/workarea/payment/authorize/credit_card.decorator +37 -0
  17. data/app/models/workarea/payment/capture/credit_card.decorator +14 -0
  18. data/app/models/workarea/payment/payware_credit_card.decorator +24 -0
  19. data/app/models/workarea/payment/purchase/credit_card.decorator +37 -0
  20. data/app/models/workarea/payment/refund/credit_card.decorator +14 -0
  21. data/app/models/workarea/payment/store_credit_card.decorator +13 -0
  22. data/app/workers/workarea/save_user_order_details.decorator +33 -0
  23. data/bin/rails +18 -0
  24. data/config/initializers/00_defaults.rb +1 -0
  25. data/doc/PWCTestAccount_WorldPay ecom.pages +0 -0
  26. data/doc/validation/(Completed v2)PAYware Connect Validation Worksheet 2015 V2 .doc +0 -0
  27. data/doc/validation/(Completed v3)PAYware Connect Validation Worksheet 2015 V2 .doc +0 -0
  28. data/doc/validation/PAYware Connect Validation Letter Weblinc 09-11-2015.pdf +0 -0
  29. data/doc/validation/PAYware Connect Validation Letter Weblinc 10-21-2015.pdf +0 -0
  30. data/lib/active_merchant/billing/bogus_payware_connect_gateway.rb +130 -0
  31. data/lib/active_merchant/billing/payware_connect_gateway.rb +137 -0
  32. data/lib/active_merchant/billing/payware_connect_gateway/actions/authorize.rb +63 -0
  33. data/lib/active_merchant/billing/payware_connect_gateway/actions/capture.rb +26 -0
  34. data/lib/active_merchant/billing/payware_connect_gateway/actions/purchase.rb +59 -0
  35. data/lib/active_merchant/billing/payware_connect_gateway/actions/refund.rb +29 -0
  36. data/lib/active_merchant/billing/payware_connect_gateway/actions/void.rb +20 -0
  37. data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/add_contract.rb +9 -0
  38. data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/add_customer.rb +9 -0
  39. data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/add_customer_and_contract.rb +10 -0
  40. data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/update_contract.rb +9 -0
  41. data/lib/active_merchant/billing/payware_connect_gateway/admin_actions/update_customer.rb +9 -0
  42. data/lib/active_merchant/billing/payware_connect_gateway/admin_xml_builder.rb +105 -0
  43. data/lib/active_merchant/billing/payware_connect_gateway/xml_builder.rb +35 -0
  44. data/lib/active_merchant/billing/payware_response.rb +9 -0
  45. data/lib/validation.rb +25 -0
  46. data/lib/workarea/payware_connect.rb +43 -0
  47. data/lib/workarea/payware_connect/engine.rb +8 -0
  48. data/lib/workarea/payware_connect/version.rb +5 -0
  49. data/test/dummy/Rakefile +6 -0
  50. data/test/dummy/app/assets/config/manifest.js +4 -0
  51. data/test/dummy/app/assets/images/.keep +0 -0
  52. data/test/dummy/app/assets/javascripts/application.js +13 -0
  53. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  54. data/test/dummy/app/controllers/application_controller.rb +3 -0
  55. data/test/dummy/app/controllers/concerns/.keep +0 -0
  56. data/test/dummy/app/helpers/application_helper.rb +2 -0
  57. data/test/dummy/app/jobs/application_job.rb +2 -0
  58. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  59. data/test/dummy/app/models/concerns/.keep +0 -0
  60. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  61. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  62. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  63. data/test/dummy/bin/bundle +3 -0
  64. data/test/dummy/bin/rails +4 -0
  65. data/test/dummy/bin/rake +4 -0
  66. data/test/dummy/bin/setup +34 -0
  67. data/test/dummy/bin/update +29 -0
  68. data/test/dummy/config.ru +5 -0
  69. data/test/dummy/config/application.rb +24 -0
  70. data/test/dummy/config/boot.rb +5 -0
  71. data/test/dummy/config/cable.yml +9 -0
  72. data/test/dummy/config/environment.rb +5 -0
  73. data/test/dummy/config/environments/development.rb +56 -0
  74. data/test/dummy/config/environments/production.rb +86 -0
  75. data/test/dummy/config/environments/test.rb +44 -0
  76. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  77. data/test/dummy/config/initializers/assets.rb +11 -0
  78. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  79. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  80. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  81. data/test/dummy/config/initializers/inflections.rb +16 -0
  82. data/test/dummy/config/initializers/mime_types.rb +4 -0
  83. data/test/dummy/config/initializers/new_framework_defaults.rb +23 -0
  84. data/test/dummy/config/initializers/workarea.rb +3 -0
  85. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  86. data/test/dummy/config/locales/en.yml +23 -0
  87. data/test/dummy/config/puma.rb +47 -0
  88. data/test/dummy/config/routes.rb +5 -0
  89. data/test/dummy/config/secrets.yml +22 -0
  90. data/test/dummy/config/spring.rb +6 -0
  91. data/test/dummy/db/seeds.rb +3 -0
  92. data/test/dummy/lib/assets/.keep +0 -0
  93. data/test/dummy/log/.keep +0 -0
  94. data/test/dummy/public/404.html +67 -0
  95. data/test/dummy/public/422.html +67 -0
  96. data/test/dummy/public/500.html +66 -0
  97. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  98. data/test/dummy/public/apple-touch-icon.png +0 -0
  99. data/test/dummy/public/favicon.ico +0 -0
  100. data/test/integration/workarea/storefront/checkout_side_effects_integration_test.decorator +44 -0
  101. data/test/lib/active_merchant/billing/payware_connect_gateway_test.rb +280 -0
  102. data/test/models/workarea/payment/authorize/credit_card_test.decorator +47 -0
  103. data/test/models/workarea/payment/capture/credit_card_test.decorator +33 -0
  104. data/test/models/workarea/payment/credit_card_integration_test.decorator +25 -0
  105. data/test/models/workarea/payment/payware_credit_card_test.rb +44 -0
  106. data/test/models/workarea/payment/purchase/credit_card_test.decorator +54 -0
  107. data/test/models/workarea/payment/refund/credit_card_test.decorator +33 -0
  108. data/test/models/workarea/payment/store_credit_card_test.decorator +10 -0
  109. data/test/support/workarea/payware_connect_gateway_vcr_config.rb +24 -0
  110. data/test/system/workarea/admin/payment_transactions_system_test.decorator +37 -0
  111. data/test/test_helper.rb +12 -0
  112. data/test/vcr_cassettes/credit_card/auth_capture.yml +127 -0
  113. data/test/vcr_cassettes/credit_card/auth_void.yml +126 -0
  114. data/test/vcr_cassettes/credit_card/purchase_void.yml +126 -0
  115. data/test/vcr_cassettes/credit_card/store_auth.yml +67 -0
  116. data/test/vcr_cassettes/credit_card/store_purchase.yml +67 -0
  117. data/test/vcr_cassettes/payware/add_contract.yml +99 -0
  118. data/test/vcr_cassettes/payware/add_customer.yml +52 -0
  119. data/test/vcr_cassettes/payware/authorize_credit_card.yml +67 -0
  120. data/test/vcr_cassettes/payware/authorize_customer_and_contract.yml +161 -0
  121. data/test/vcr_cassettes/payware/authorize_for_0_credit_card.yml +67 -0
  122. data/test/vcr_cassettes/payware/authorize_for_0_troutd.yml +130 -0
  123. data/test/vcr_cassettes/payware/authorize_troutd.yml +130 -0
  124. data/test/vcr_cassettes/payware/capture.yml +127 -0
  125. data/test/vcr_cassettes/payware/refund.yml +223 -0
  126. data/test/vcr_cassettes/payware/refund_troutd.yml +128 -0
  127. data/test/vcr_cassettes/payware/void_authorization.yml +126 -0
  128. data/test/workers/workarea/save_user_order_details_test.decorator +56 -0
  129. data/workarea-payware_connect.gemspec +18 -0
  130. metadata +190 -0
@@ -0,0 +1,67 @@
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>5.00</TRANS_AMOUNT><PRESENT_FLAG>1</PRESENT_FLAG><CARDHOLDER>Ben
9
+ Crouse</CARDHOLDER><CUSTOMER_STREET>22 s. 3rd st.</CUSTOMER_STREET><CUSTOMER_CITY>Philadelphia</CUSTOMER_CITY><CUSTOMER_STATE>PA</CUSTOMER_STATE><CUSTOMER_ZIP>19106</CUSTOMER_ZIP><ACCT_NUM>4111111111111111</ACCT_NUM><CVV2>999</CVV2><EXP_MONTH>01</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
+ - Tue, 28 May 2019 13:49:44 GMT
48
+ Connection:
49
+ - close
50
+ Content-Length:
51
+ - '561'
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: "<RESPONSE>\r\n <AUTH_CODE>TAS970</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>18</CTROUTD>\r\n <CVV2_CODE>M</CVV2_CODE>\r\n <INTRN_SEQ_NUM>336398</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>914813502308</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>5.00</TRANS_AMOUNT>\r\n
62
+ \ <TRANS_DATE>2019.05.28</TRANS_DATE>\r\n <TRANS_SEQ_NUM>9</TRANS_SEQ_NUM>\r\n
63
+ \ <TRANS_TIME>09:49:43</TRANS_TIME>\r\n <TROUTD>336398</TROUTD>\r\n
64
+ \ <LPTOKEN>97</LPTOKEN>\r\n</RESPONSE>"
65
+ http_version:
66
+ recorded_at: Tue, 28 May 2019 13:49:43 GMT
67
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,67 @@
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>SALE</COMMAND><TRANS_AMOUNT>5.00</TRANS_AMOUNT><PRESENT_FLAG>1</PRESENT_FLAG><CARDHOLDER>Ben
9
+ Crouse</CARDHOLDER><CUSTOMER_STREET>22 s. 3rd st.</CUSTOMER_STREET><CUSTOMER_CITY>Philadelphia</CUSTOMER_CITY><CUSTOMER_STATE>PA</CUSTOMER_STATE><CUSTOMER_ZIP>19106</CUSTOMER_ZIP><ACCT_NUM>4111111111111111</ACCT_NUM><CVV2>999</CVV2><EXP_MONTH>01</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
+ - Tue, 28 May 2019 13:49:45 GMT
48
+ Connection:
49
+ - close
50
+ Content-Length:
51
+ - '561'
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: "<RESPONSE>\r\n <AUTH_CODE>TAS971</AUTH_CODE>\r\n <AVS_CODE>N</AVS_CODE>\r\n
55
+ \ <CLIENT_ID>17270300010001</CLIENT_ID>\r\n <COMMAND>SALE</COMMAND>\r\n
56
+ \ <CTROUTD>19</CTROUTD>\r\n <CVV2_CODE>M</CVV2_CODE>\r\n <INTRN_SEQ_NUM>336404</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>914813502309</REFERENCE>\r\n
59
+ \ <RESPONSE_TEXT>NO MATCH </RESPONSE_TEXT>\r\n <RESULT>CAPTURED</RESULT>\r\n
60
+ \ <RESULT_CODE>4</RESULT_CODE>\r\n <TERMID>1515</TERMID>\r\n
61
+ \ <TERMINATION_STATUS>SUCCESS</TERMINATION_STATUS>\r\n <TRANS_AMOUNT>5.00</TRANS_AMOUNT>\r\n
62
+ \ <TRANS_DATE>2019.05.28</TRANS_DATE>\r\n <TRANS_SEQ_NUM>10</TRANS_SEQ_NUM>\r\n
63
+ \ <TRANS_TIME>09:49:44</TRANS_TIME>\r\n <TROUTD>336404</TROUTD>\r\n
64
+ \ <LPTOKEN>97</LPTOKEN>\r\n</RESPONSE>"
65
+ http_version:
66
+ recorded_at: Tue, 28 May 2019 13:49:45 GMT
67
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,99 @@
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="83627"><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:58 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:57 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>83627</Merchant_Customer_ID><Merchant_Contract_ID>56681</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:56 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:58 GMT
99
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
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="46148"><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:01:09 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:01:09 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,67 @@
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:01:08 GMT
48
+ Connection:
49
+ - close
50
+ Content-Length:
51
+ - '564'
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: "<RESPONSE>\r\n <AUTH_CODE>TAS591</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>13</CTROUTD>\r\n <CVV2_CODE>M</CVV2_CODE>\r\n <INTRN_SEQ_NUM>95866</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>913616501807</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>16</TRANS_SEQ_NUM>\r\n
63
+ \ <TRANS_TIME>12:01:05</TRANS_TIME>\r\n <TROUTD>95866</TROUTD>\r\n
64
+ \ <LPTOKEN>97</LPTOKEN>\r\n</RESPONSE>"
65
+ http_version:
66
+ recorded_at: Thu, 16 May 2019 16:01:07 GMT
67
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,161 @@
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="71409"><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:57 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:59 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>71409</Merchant_Customer_ID><Merchant_Contract_ID>30487</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:01:00 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:01:00 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>71409</RBCUSTOMER_ID><RBCONTRACT_ID>30487</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:58 GMT
143
+ Connection:
144
+ - close
145
+ Content-Length:
146
+ - '535'
147
+ body:
148
+ encoding: ASCII-8BIT
149
+ string: "<RESPONSE>\r\n <AUTH_CODE>TAS584</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>8</CTROUTD>\r\n <INTRN_SEQ_NUM>95860</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>913616501797</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>9</TRANS_SEQ_NUM>\r\n
158
+ \ <TRANS_TIME>12:00:59</TRANS_TIME>\r\n <TROUTD>95860</TROUTD>\r\n</RESPONSE>"
159
+ http_version:
160
+ recorded_at: Thu, 16 May 2019 16:01:01 GMT
161
+ recorded_with: VCR 2.9.3