payhyper 0.4.2 → 0.4.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 +4 -4
- data/lib/payhyper.rb +2 -2
- data/lib/payhyper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 276cfb92fc026cd8fa095b218e4cf71617c95808
|
4
|
+
data.tar.gz: fb84b3b642c1a4a5d734314c202f223187bb35cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86e1f603b089283a66d6e88093e530b24ebc0c9d5e6c4a7d5c574e84fb6cb244ddec436b04074d482950257c4a481a272cb0648dee788b648c4386a9a14f7603
|
7
|
+
data.tar.gz: 99baeb86e4ebc7670913ea5881e152c08d4d66070fca6e4536a0dd22b18dc85b191cbaef5580eeb0509da31d589791ac73e40c5d073c93582ee3a9b6734ad0a5
|
data/lib/payhyper.rb
CHANGED
@@ -38,7 +38,7 @@ module PayHyper
|
|
38
38
|
@base_url = BASE_URLS[mode]
|
39
39
|
end
|
40
40
|
|
41
|
-
def self.at_door!(name, phone, email, country, city, amount, currency, address = nil, invoice = nil, tag = nil, stickiness_id = nil, details = nil) # TODO: There is a lot of overlap with "in_store!", refactor.
|
41
|
+
def self.at_door!(name, phone, email, country, city, amount, currency, address = nil, invoice = nil, tag = nil, stickiness_id = nil, details = nil, location = nil) # TODO: There is a lot of overlap with "in_store!", refactor.
|
42
42
|
raise_if_not_setup!
|
43
43
|
# == Clean-up fields ==
|
44
44
|
currency = currency.upcase if currency && currency.is_a?(String)
|
@@ -59,7 +59,7 @@ module PayHyper
|
|
59
59
|
raise ValidationError, "Invalid email." if email.nil? || !email.match(/\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/)
|
60
60
|
raise ValidationError, "Name is mandatory." if name.nil? || name.strip.length == 0
|
61
61
|
# == Do the request ==
|
62
|
-
make_call("/v1/at-door", { :name => name, :phone => phone, :email => email, :country => country, :city => city, :amount => amount, :currency => currency, :address => address, :invoice => invoice, :tag => tag, :stickiness_id => stickiness_id, :details => details })
|
62
|
+
make_call("/v1/at-door", { :name => name, :phone => phone, :email => email, :country => country, :city => city, :amount => amount, :currency => currency, :address => address, :invoice => invoice, :tag => tag, :stickiness_id => stickiness_id, :details => details, :location => location })
|
63
63
|
end
|
64
64
|
|
65
65
|
def self.in_store!(name, phone, email, country, amount, currency, tag = nil) # TODO: There is a lot of overlap with "at_door!", refactor.
|
data/lib/payhyper/version.rb
CHANGED
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.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sinan Taifour
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
78
|
+
rubygems_version: 2.6.8
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: The Ruby bindings of the Hyper API
|