payhyper 0.3.2 → 0.3.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fb94fb9e3eb60c4ce821f903e2b46b3db1c187d
4
- data.tar.gz: 99556bd2571ebc6bb45b846040c74148400bcbc7
3
+ metadata.gz: 530cdc55385c34f899321b9cee37e9e98d2fa4dd
4
+ data.tar.gz: c4a0caf8d999b52755d4f4a8eb44f32871e2a794
5
5
  SHA512:
6
- metadata.gz: ee30a8d8621c390fd114c79f1eeb5de50cf73dc4e184c0c7058c698c087db0f6cecb0fda4bca6c5a361d0a53b01c47074e6c27b134b53c30f04ee88186364b7e
7
- data.tar.gz: 9004bafd18e513c6b010765c55fe693d56571ac9f984eeb43620474cc67eb4af39265c7a39d0ed4bf1eeffe3d4ba909bf207009deab94e73ca9f697724d1bc99
6
+ metadata.gz: 427cd1638764149f871a9efef3f9e07d124c6f0500ce9515d092807c40fb2c5ffcb4253f2ed1d2eeed9de11c6c6c9002e41d5f3f9055ef6c055b70dfc49e9c3c
7
+ data.tar.gz: a28937e6abfa634b4e98c666a7f73b68fd8d23bcb6ad1f9d87f64c3aef78d8d4aeb4539f281471be4976ee9cf0ebb254c9e6143c25df8351e12b86aca4129202
@@ -36,7 +36,7 @@ module PayHyper
36
36
  @base_url = BASE_URLS[mode]
37
37
  end
38
38
 
39
- def self.at_door!(name, phone, email, country, amount, currency, address = nil, invoice = nil, tag = nil, stick_id = nil) # TODO: There is a lot of overlap with "in_store!", refactor.
39
+ def self.at_door!(name, phone, email, country, amount, currency, address = nil, invoice = nil, tag = nil, stickiness_id = nil) # TODO: There is a lot of overlap with "in_store!", refactor.
40
40
  raise_if_not_setup!
41
41
  # == Clean-up fields ==
42
42
  currency = currency.upcase if currency && currency.is_a?(String)
@@ -56,7 +56,7 @@ module PayHyper
56
56
  raise ValidationError, "Invalid email." if email.nil? || !email.match(/\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/)
57
57
  raise ValidationError, "Name is mandatory." if name.nil? || name.strip.length == 0
58
58
  # == Do the request ==
59
- make_call("/v1/at-door", { :name => name, :phone => phone, :email => email, :country => country, :amount => amount, :currency => currency, :address => address, :invoice => invoice, :tag => tag, :stick_id => stick_id })
59
+ make_call("/v1/at-door", { :name => name, :phone => phone, :email => email, :country => country, :amount => amount, :currency => currency, :address => address, :invoice => invoice, :tag => tag, :stickiness_id => stickiness_id })
60
60
  end
61
61
 
62
62
  def self.in_store!(name, phone, email, country, amount, currency, tag = nil) # TODO: There is a lot of overlap with "at_door!", refactor.
@@ -1,3 +1,3 @@
1
1
  module PayHyper
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payhyper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sinan Taifour