payhyper 0.2.0 → 0.2.1
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 +8 -8
- data/lib/payhyper.rb +1 -1
- data/lib/payhyper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzA3MmJiMDllMGQzMDdlZjdjOTNlOGE2OGY1NDU4MDY5YWZlNzY1ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWMxMzlhYmU2NzFlOTU5ODdkZTNhZTMxN2RiNDZhYTFiOGQ1MzcwOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Mjk0YWRjNDE2N2NkMjQ1OTY0YWQ2ZmE2ZTJlZjc4OGViMjY4YzM2Njc3NzMy
|
10
|
+
M2U2OTU5NDRkNTVhN2QxMmE4YjljZTEyMzkyMzViYWYzM2Q3OTdkZmIyODFj
|
11
|
+
MmRhNDQwMzU5NWZjODc5N2Q4NzQ5MWQ4YjBjNGE3YWQ1ZmFkOTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjQwYzEwYTNiZTVmODdkNTIzMjYxMzFjYjhlYjViNzczOTI2NTBiOGNjNmNi
|
14
|
+
NmM1ZWY5NTkxZDFhYTAzOTdjNmMxM2I2YTI3YjU5OGFlYWFjNGZiYjA3ZGIx
|
15
|
+
NWEyZmRjZTk3OTg2MWUwMmE0YmY3MmM5ODAzYTZjOWQ0MTRlYzQ=
|
data/lib/payhyper.rb
CHANGED
@@ -46,7 +46,7 @@ module PayHyper
|
|
46
46
|
currency = currency.upcase if currency && currency.is_a?(String)
|
47
47
|
country = country.upcase if country && country.is_a?(String)
|
48
48
|
if phone && phone.is_a?(String)
|
49
|
-
phone = phone(/[^0-9]/, "") # Remove non-numeric characters.
|
49
|
+
phone = phone.gsub(/[^0-9]/, "") # Remove non-numeric characters.
|
50
50
|
phone = phone.gsub(/^0*/, "") # Remove leading zeros.
|
51
51
|
if country && COUNTRY_CODES[country] && !phone.start_with?(COUNTRY_CODES[country])
|
52
52
|
phone = COUNTRY_CODES[country] + phone # Add country code.
|
data/lib/payhyper/version.rb
CHANGED