hps 2.2.5 → 2.4.0

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.
Files changed (83) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +4 -4
  3. data/Gemfile.lock +59 -0
  4. data/LICENSE.md +264 -0
  5. data/PRIVACY.txt +65 -65
  6. data/README.md +213 -216
  7. data/Rakefile +15 -15
  8. data/examples/sinatra-verify-only/Gemfile +4 -4
  9. data/examples/sinatra-verify-only/app.rb +32 -32
  10. data/examples/sinatra-verify-only/views/index.erb +478 -478
  11. data/examples/sinatra-verify-only/views/result.erb +39 -39
  12. data/hps.gemspec +28 -28
  13. data/lib/hps/configuration.rb +17 -17
  14. data/lib/hps/entities/hps_account_verify.rb +8 -8
  15. data/lib/hps/entities/hps_address.rb +6 -6
  16. data/lib/hps/entities/hps_authorization.rb +12 -12
  17. data/lib/hps/entities/hps_batch.rb +6 -6
  18. data/lib/hps/entities/hps_cardholder.rb +6 -6
  19. data/lib/hps/entities/hps_charge.rb +8 -8
  20. data/lib/hps/entities/hps_charge_exceptions.rb +6 -6
  21. data/lib/hps/entities/hps_check.rb +18 -18
  22. data/lib/hps/entities/hps_check_holder.rb +10 -10
  23. data/lib/hps/entities/hps_check_response.rb +45 -45
  24. data/lib/hps/entities/hps_check_response_details.rb +9 -9
  25. data/lib/hps/entities/hps_credit_card.rb +34 -34
  26. data/lib/hps/entities/hps_direct_market_data.rb +5 -5
  27. data/lib/hps/entities/hps_encryption_data.rb +6 -6
  28. data/lib/hps/entities/hps_gift_card.rb +133 -0
  29. data/lib/hps/entities/hps_manage_tokens.rb +8 -8
  30. data/lib/hps/entities/hps_refund.rb +8 -8
  31. data/lib/hps/entities/hps_report_transaction_details.rb +10 -10
  32. data/lib/hps/entities/hps_report_transaction_summary.rb +6 -6
  33. data/lib/hps/entities/hps_reversal.rb +10 -10
  34. data/lib/hps/entities/hps_token_data.rb +10 -10
  35. data/lib/hps/entities/hps_track_data.rb +5 -5
  36. data/lib/hps/entities/hps_transaction.rb +161 -161
  37. data/lib/hps/entities/hps_transaction_details.rb +6 -6
  38. data/lib/hps/entities/hps_transaction_header.rb +8 -8
  39. data/lib/hps/entities/hps_transaction_type.rb +16 -16
  40. data/lib/hps/entities/hps_void.rb +8 -8
  41. data/lib/hps/infrastructure/api_connection_exception.rb +11 -11
  42. data/lib/hps/infrastructure/authentication_exception.rb +11 -11
  43. data/lib/hps/infrastructure/card_exception.rb +15 -15
  44. data/lib/hps/infrastructure/exceptions.json +547 -468
  45. data/lib/hps/infrastructure/hps_account_type.rb +11 -11
  46. data/lib/hps/infrastructure/hps_check_exception.rb +13 -13
  47. data/lib/hps/infrastructure/hps_check_type.rb +11 -11
  48. data/lib/hps/infrastructure/hps_data_entry_mode.rb +11 -11
  49. data/lib/hps/infrastructure/hps_exception.rb +25 -25
  50. data/lib/hps/infrastructure/hps_exception_mapper.rb +145 -134
  51. data/lib/hps/infrastructure/hps_gateway_response_validation.rb +20 -20
  52. data/lib/hps/infrastructure/hps_input_validation.rb +13 -13
  53. data/lib/hps/infrastructure/hps_sdk_codes.rb +48 -48
  54. data/lib/hps/infrastructure/hps_sec_code.rb +27 -27
  55. data/lib/hps/infrastructure/hps_track_data_method.rb +6 -6
  56. data/lib/hps/infrastructure/invalid_request_exception.rb +15 -15
  57. data/lib/hps/services/hps_batch_service.rb +29 -29
  58. data/lib/hps/services/hps_charge_service.rb +773 -773
  59. data/lib/hps/services/hps_check_service.rb +110 -110
  60. data/lib/hps/services/hps_gift_card_service.rb +301 -0
  61. data/lib/hps/services/hps_service.rb +141 -136
  62. data/lib/hps/version.rb +3 -3
  63. data/lib/hps.rb +63 -61
  64. data/tests/amex_tests.rb +292 -292
  65. data/tests/cert_tests.rb +80 -80
  66. data/tests/certification/card_present_spec.rb +320 -320
  67. data/tests/certification/gift_card_certification_test.rb +107 -0
  68. data/tests/certification/gift_card_certification_tests.rb +107 -0
  69. data/tests/check_tests.rb +50 -50
  70. data/tests/discover_tests.rb +386 -386
  71. data/tests/exception_mapper_tests.rb +311 -244
  72. data/tests/general_tests.rb +140 -140
  73. data/tests/giftcard_tests.rb +212 -0
  74. data/tests/hps_token_service.rb +56 -56
  75. data/tests/mastercard_tests.rb +387 -387
  76. data/tests/secret_key.rb +11 -11
  77. data/tests/test_check.rb +77 -77
  78. data/tests/test_data.rb +138 -128
  79. data/tests/test_helper.rb +179 -116
  80. data/tests/token_tests.rb +512 -512
  81. data/tests/visa_tests.rb +445 -445
  82. metadata +40 -15
  83. data/LICENSE.txt +0 -32
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hps
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heartland Payment Systems
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2024-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: 2.5.6
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: 2.5.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -93,9 +93,9 @@ dependencies:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
95
  version: 2.3.14
96
- - - "<"
96
+ - - "<="
97
97
  - !ruby/object:Gem::Version
98
- version: 5.0.0
98
+ version: 7.1.3
99
99
  type: :runtime
100
100
  prerelease: false
101
101
  version_requirements: !ruby/object:Gem::Requirement
@@ -103,9 +103,29 @@ dependencies:
103
103
  - - ">="
104
104
  - !ruby/object:Gem::Version
105
105
  version: 2.3.14
106
- - - "<"
106
+ - - "<="
107
+ - !ruby/object:Gem::Version
108
+ version: 7.1.3
109
+ - !ruby/object:Gem::Dependency
110
+ name: rexml
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '3.2'
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: 3.2.4
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '3.2'
126
+ - - ">="
107
127
  - !ruby/object:Gem::Version
108
- version: 5.0.0
128
+ version: 3.2.4
109
129
  description: Ruby SDK for processing payments via Portico Gateway
110
130
  email:
111
131
  - IntegrationSupportTeam@e-hps.com
@@ -114,7 +134,8 @@ extensions: []
114
134
  extra_rdoc_files: []
115
135
  files:
116
136
  - Gemfile
117
- - LICENSE.txt
137
+ - Gemfile.lock
138
+ - LICENSE.md
118
139
  - PRIVACY.txt
119
140
  - README.md
120
141
  - Rakefile
@@ -155,6 +176,7 @@ files:
155
176
  - lib/hps/entities/hps_credit_card.rb
156
177
  - lib/hps/entities/hps_direct_market_data.rb
157
178
  - lib/hps/entities/hps_encryption_data.rb
179
+ - lib/hps/entities/hps_gift_card.rb
158
180
  - lib/hps/entities/hps_manage_tokens.rb
159
181
  - lib/hps/entities/hps_refund.rb
160
182
  - lib/hps/entities/hps_report_transaction_details.rb
@@ -186,15 +208,19 @@ files:
186
208
  - lib/hps/services/hps_batch_service.rb
187
209
  - lib/hps/services/hps_charge_service.rb
188
210
  - lib/hps/services/hps_check_service.rb
211
+ - lib/hps/services/hps_gift_card_service.rb
189
212
  - lib/hps/services/hps_service.rb
190
213
  - lib/hps/version.rb
191
214
  - tests/amex_tests.rb
192
215
  - tests/cert_tests.rb
193
216
  - tests/certification/card_present_spec.rb
217
+ - tests/certification/gift_card_certification_test.rb
218
+ - tests/certification/gift_card_certification_tests.rb
194
219
  - tests/check_tests.rb
195
220
  - tests/discover_tests.rb
196
221
  - tests/exception_mapper_tests.rb
197
222
  - tests/general_tests.rb
223
+ - tests/giftcard_tests.rb
198
224
  - tests/hps_token_service.rb
199
225
  - tests/mastercard_tests.rb
200
226
  - tests/secret_key.rb
@@ -205,9 +231,9 @@ files:
205
231
  - tests/visa_tests.rb
206
232
  homepage: ''
207
233
  licenses:
208
- - MIT
234
+ - GPL-2.0
209
235
  metadata: {}
210
- post_install_message:
236
+ post_install_message:
211
237
  rdoc_options: []
212
238
  require_paths:
213
239
  - lib
@@ -222,9 +248,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
248
  - !ruby/object:Gem::Version
223
249
  version: '0'
224
250
  requirements: []
225
- rubyforge_project:
226
- rubygems_version: 2.6.13
227
- signing_key:
251
+ rubygems_version: 3.4.19
252
+ signing_key:
228
253
  specification_version: 4
229
254
  summary: Heartland Payment Systems - Portico Gateway SDK
230
255
  test_files: []
data/LICENSE.txt DELETED
@@ -1,32 +0,0 @@
1
- END-USER LICENSE AGREEMENT FOR SECURE SUBMIT
2
- REVISED 11.13.13
3
- IMPORTANT READ CAREFULLY:
4
- This Heartland Payment Systems (�HPS�) End-User License Agreement (�EULA�) is a legal agreement between you (either an individual or a single entity) and HPS for the Secure Submit software product accompanying this EULA, which includes computer software and may include associated media, printed materials, and online or electronic documentation (�Software�). By downloading, copying or otherwise using the Software, you agree to the terms of this EULA and any additional terms and conditions that may be added to the EULA by HPS. BY DOWNLOADING, COPYING OR USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ, UNDERSTOOD, AND AGREED TO BE BOUND BY THE TERMS HEREIN. IF YOU HAVE ANY QUESTIONS ON THE TERMS OF USE, YOU SHOULD CONSULT WITH AN ATTORNEY BEFORE DOWNLOADING OR USING THE SOFTWARE. If you do not agree to the terms of this EULA, do not download or use the Software. As used herein, the words �you� and �your� mean the person or entity that has downloaded or used the Software. The words �we,� �us� and �our� means HPS. You must be at least 18 years of age in any of the fifty United States (or 21 in Puerto Rico) to use the Software. By downloading or using the Software, you agree that you will use the Software only in the United States or United States territories.
5
- GRANT OF LICENSE
6
- HPS hereby grants you a limited, non-exclusive, non-transferable, royalty-free license to make and use an unlimited number of copies of the Software accompanying this EULA: (1) solely for your internal purpose of integrating session-based data encryption into HPS�s payment processing platform; or (2) to make and distribute new programs incorporating the Software for the purpose of integrating to HPS�s payment processing platform for sublicensing to those who have an internal purpose of integrating session-based data encryption into HPS�s payment processing platform (the �Purpose�).
7
- USE RESTRICTION
8
- You acknowledge that the Software acquired hereunder can only be used for the Purpose. Use of the Software for any other purpose is a violation of this EULA and you agree to be subject to any and all penalties and remedies available at law or in equity for violation of intellectual property laws and treaties.
9
- TERMINATION
10
- Without prejudice to any other rights, HPS may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In any event, this EULA shall terminate if you no longer have a purpose of integrating session-based data encryption into HPS�s payment processing platform. In the event of termination of this EULA, you must destroy all copies of the Software and all of its component parts.
11
- RESERVATION OF RIGHTS
12
- You agree that the Software is owned HPS and all rights not expressly granted herein are reserved by HPS.
13
- PRODUCT MAINTENANCE
14
- You understand and agree that HPS may provide updates to the Software from time to time but HPS shall have no obligation to provide maintenance or updates to you for Software licensed under this Agreement.
15
- MISAPPROPRIATION
16
- You shall promptly advise HPS, in writing, of any misappropriation or misuse of the Software by any person which may come to your attention.
17
- U.S. GOVERNMENT RESTRICTED RIGHTS AND EXPORT RESTRICTIONS
18
- The Software is provided with restricted rights. Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 or subparagraphs (c)(1) and (2) of the Commercial Computer Software Restricted Rights at 48 CFR 52.227-19, as applicable. Manufacturer is Heartland Payment Systems, 90 Nassau Street, Princeton, NJ 08542. You acknowledge that the Software acquired hereunder is subject to the export control laws and regulations of the U.S.A., and any amendments thereof. You acknowledge and agree that you will not, directly or indirectly, export the Software.
19
- DISCLAIMER OF WARRANTY
20
- THE SOFTWARE IS PROVIDED �AS IS� WITHOUT WARRANTY OF ANY KIND, WHATSOEVER, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. YOU ASSUME THE ENTIRE RISK ARISING OUT OF THE USE OR PERFORMANCE OF THE SOFTWARE.
21
- DISCLAIMER OF DAMAGES AND LIMITATION OF LIABILITY
22
-
23
- IN NO EVENT SHALL HPS, ITS BUSINESS PARTNERS, ITS OWNERS, DIRECTORS, EMPLOYEES OR AGENTS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, PUNITIVE, EXEMPLARY, CONSEQUENTIAL OR OTHER DAMAGES WHATSOEVER, INCLUDING BUT NOT LIMITED TO PROPERTY DAMAGE, LOSS OF USE, LOSS OF BUSINESS, ECONOMIC LOSS, LOSS OF DATA OR LOSS OF PROFITS, WITHOUT REGARD TO THE FORM OF ACTION (INCLUDING BUT NOT LIMITED TO CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTIONS) ARISING OUT OF OR IN CONNECTION WITH YOUR USE OF THE SOFTWARE, EVEN IF HPS, ITS BUSINESS PARTNERS, ITS OWNERS, DIRECTORS, EMPLOYEES OR AGENTS HAD BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE OR LOSS. BECAUSE SOME STATES OR JURISDICTIONS DO NOT ALLOW LIMITATION OR EXCLUSION OF DAMAGES, THE ABOVE LIMITATION MAY NOT FULLY APPLY TO YOU.
24
-
25
- MISCELLANEOUS
26
-
27
- This EULA shall be construed, interpreted and performed exclusively according to the laws of the State of New Jersey, United States of America, without giving effect to any principles of conflicts of law. You expressly agree that any action at law or in equity arising out of or directly or indirectly relating to this EULA or the Software shall be filed only in the federal or state courts sitting in Mercer County, New Jersey. You hereby consent and submit to personal jurisdiction of such courts for the purposes of any action related to the Software, your access or use thereof, or this EULA, and to extra-territorial service of process.
28
-
29
- This EULA may not be assigned by you. HPS may assign their rights and obligations set forth in this EULA at any time. Should any part or provision of this EULA be held unlawful, void, invalid or unenforceable, that portion shall be deemed severable from this EULA shall not affect the validity and enforceability of any remaining provisions. Except as provided herein, this EULA constitutes the entire agreement between you and HPS pertaining to the download or use of the Software. Nothing herein shall alter or modify your agreements with HPS related to payment processing or other services or products provided to you by HPS. HPS�s failure to enforce any provision of this EULA or any additional terms shall not be deemed a waiver of such provisions nor of its right to enforce such provision. This EULA may be accepted in electronic form (e.g., by an electronic or other means of demonstrating assent) and your acceptance will be deemed binding between you and HPS. You hereby agree, without limitation, that you not will contest the validity or enforceability of this EULA.
30
-
31
- CONTACT
32
- Should you have any questions concerning this EULA, or if you desire to contact HPS for any reason, please write: Heartland Payment Systems, 90 Nassau Street, Princeton, NJ 08452. Attention: Legal.