avangate 0.2.1 → 0.2.2
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/avangate.rb +9 -10
- data/lib/avangate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d002376589083c286d766dee792fcf63d3082d9b
|
|
4
|
+
data.tar.gz: 1521606de3a75661f4d7a93631325fba17ab376c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46cb2e49bc84d00cba364b112743f77b846636656976bd62a607b3c2af2e5c86937568b40cf0868fcfb0e12d0ef746335fdce851e8d5edf8230af4bb680de196
|
|
7
|
+
data.tar.gz: ee6af5a52033a999ab4a259a08c1bb0178e846cd158698496a27f74a14a9366320895c663017355ed775f2ac33822f0075cd6bfc907b2cb514a2f9f4de57c470
|
data/lib/avangate.rb
CHANGED
|
@@ -42,16 +42,15 @@ module Avangate
|
|
|
42
42
|
raise MissingLastName, "missing param last_name" unless options[:last_name].presence
|
|
43
43
|
raise MissingPostalCode, "missing param postal_code" unless options[:postal_code].presence
|
|
44
44
|
raise MissingState, "missing param state" unless options[:state].presence or !STATE_REQUIRED_COUNTRIES.include? options[:country]
|
|
45
|
-
billing_details = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
45
|
+
billing_details = {}
|
|
46
|
+
billing_details['Address'] = options[:address]
|
|
47
|
+
billing_details['City'] = options[:city]
|
|
48
|
+
billing_details['Country'] = options[:country]
|
|
49
|
+
billing_details['Email'] = options[:email]
|
|
50
|
+
billing_details['FirstName'] = options[:first_name]
|
|
51
|
+
billing_details['LastName'] = options[:last_name]
|
|
52
|
+
billing_details['PostalCode'] = options[:postal_code]
|
|
53
|
+
billing_details['State'] = options[:state]
|
|
55
54
|
params = {
|
|
56
55
|
sessionID: options[:session_id],
|
|
57
56
|
BillingDetails: billing_details
|
data/lib/avangate/version.rb
CHANGED