bluepay 1.0.7 → 1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bluepay.gemspec +2 -2
  3. data/lib/bluepay.rb +11 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 040ef1ecd2c2ec89c955c6c038f503ba582097d9
4
- data.tar.gz: bc51b336d7c58b48912d2573ab44b64a5fd2f3fd
3
+ metadata.gz: c3a965bd75dc02ba14600420f531b4d411111129
4
+ data.tar.gz: cb12bfe861a0378aa29413f043e0e731f37b2b45
5
5
  SHA512:
6
- metadata.gz: cf3ae0dfafa78afc6cf497199e96300d2ae115e1d61a5909f4405ed16446220b1f2ffb81eccda3a2bb96bbb27dd84e33583b99b95dbc6b4b07abd96b6ec6744a
7
- data.tar.gz: e405a6db7afad4b1e8a15663ba0d1665b54804bb14b30b65e170b43b87513a11fd09cf710b14d7fc97f6d7547dc07e1e14b34eb9742ed3366e117549a26b64bc
6
+ metadata.gz: 4ca8468b17913aee83f6cd0d3f65f76282dcdb99cf30fe4f130d71d0dec1a911824cf8cafe5adb77fa570435674e8ac42e9b1e5728590e04713dfe0d30e01c0c
7
+ data.tar.gz: 50b2f2fe732bda378daf7772fac652b007055b70e30de2fd1369b5f35f98b3e8daa949a1b1b5a02a833ecd2a6d9ea71d5923bfea29811478a3a37b65ee985b60
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bluepay'
3
- s.version = '1.0.7'
4
- s.date = '2018-02-16'
3
+ s.version = '1.0.8'
4
+ s.date = '2018-02-19'
5
5
  s.summary = "BluePay gateway rubygem"
6
6
  s.description = "This gem is intended to be used along with a BluePay gateway account to process credit card and ACH transactions"
7
7
  s.authors = ["Justin Slingerland, Susan Schmidt, Eric Margules"]
@@ -109,6 +109,7 @@ class BluePay
109
109
  @PARAM_HASH['COUNTRY'] = params[:country]
110
110
  @PARAM_HASH['PHONE'] = params[:phone]
111
111
  @PARAM_HASH['EMAIL'] = params[:email]
112
+ @PARAM_HASH['COMPANY_NAME'] = params[:company_name] || ''
112
113
  end
113
114
 
114
115
  # Set customer Phone
@@ -121,6 +122,11 @@ class BluePay
121
122
  @PARAM_HASH['EMAIL'] = email
122
123
  end
123
124
 
125
+ # Set COMPANY_NAME field
126
+ def company_name=(company_name)
127
+ @PARAM_HASH['COMPANY_NAME'] = company_name
128
+ end
129
+
124
130
  # Set MEMO field
125
131
  def memo=(memo)
126
132
  @PARAM_HASH['COMMENT'] = memo
@@ -510,6 +516,11 @@ class BluePay
510
516
  return encoded_string
511
517
  end
512
518
 
519
+ # Generates a Tamperproof Seal for a url. Must be used with generate_url.
520
+ def calc_url_tps(tps_type)
521
+ Digest::MD5.hexdigest(tps_type)
522
+ end
523
+
513
524
  # Generates the final url for the Simple Hosted Payment Form. Must be used with generate_url.
514
525
  def calc_url_response
515
526
  'https://secure.bluepay.com/interfaces/shpf?' +
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Slingerland, Susan Schmidt, Eric Margules
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-16 00:00:00.000000000 Z
11
+ date: 2018-02-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem is intended to be used along with a BluePay gateway account
14
14
  to process credit card and ACH transactions