ruby-gpwebpay 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gp_webpay/version.rb +1 -1
- data/lib/gp_webpay/web_services.rb +25 -25
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13d30736b1da36214ee47ca3f39d7a476cf498e94dfd3f41c8f9372666d90bb6
|
4
|
+
data.tar.gz: 92eb7b041e5b4e54842d04258356c33248e727d84611e03fed1660e0214979f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45033725319c4b31883e93290c9066e7e599e484d9a0b7014e9c9806ab752fc486bd590d401d08000c4000bd9c49d95a71976ef5d619a41569138ce4b2dc1bdc
|
7
|
+
data.tar.gz: 822bf9de1d32673050689467a797e34c3568e929a8dd264c076fb34cd70058b1a0de723fd12732197e4a7a995af01fb9a9e778c1797f26eff5adb472e4b7e945
|
data/lib/gp_webpay/version.rb
CHANGED
@@ -81,34 +81,34 @@ module GpWebpay
|
|
81
81
|
order_number: order_number,
|
82
82
|
digest: ws_verification(type).digest,
|
83
83
|
}
|
84
|
-
payment_attributes = {
|
85
|
-
merchant_order_number: merchant_order_number,
|
86
|
-
master_order_number: master_order_number,
|
87
|
-
amount: amount_in_cents,
|
88
|
-
capture_flag: capture_flag,
|
89
|
-
card_holder_name: card_holder.name,
|
90
|
-
card_holder_email: card_holder.email,
|
91
|
-
card_holder_phone_country: card_holder.phone_country,
|
92
|
-
card_holder_phone: card_holder.phone,
|
93
|
-
card_holder_mobile_phone_country: card_holder.mobile_phone_country,
|
94
|
-
card_holder_mobile_phone: card_holder.mobile_phone,
|
95
|
-
address_match: address_match,
|
96
|
-
billing_name: billing.name,
|
97
|
-
billing_address1: billing.address1,
|
98
|
-
billing_city: billing.city,
|
99
|
-
billing_postal_code: billing.postal_code,
|
100
|
-
billing_country: billing.country,
|
101
|
-
shipping_name: shipping.name,
|
102
|
-
shipping_address1: shipping.address1,
|
103
|
-
shipping_city: shipping.city,
|
104
|
-
shipping_postal_code: shipping.postal_code,
|
105
|
-
shipping_country: shipping.country,
|
106
|
-
# Deprecated Attrs, will remove
|
107
|
-
currency: currency,
|
108
|
-
}
|
109
84
|
|
110
85
|
case type
|
111
86
|
when "processRegularSubscriptionPayment"
|
87
|
+
payment_attributes = {
|
88
|
+
merchant_order_number: merchant_order_number,
|
89
|
+
master_order_number: master_order_number,
|
90
|
+
amount: amount_in_cents,
|
91
|
+
capture_flag: capture_flag,
|
92
|
+
card_holder_name: card_holder.name,
|
93
|
+
card_holder_email: card_holder.email,
|
94
|
+
card_holder_phone_country: card_holder.phone_country,
|
95
|
+
card_holder_phone: card_holder.phone,
|
96
|
+
card_holder_mobile_phone_country: card_holder.mobile_phone_country,
|
97
|
+
card_holder_mobile_phone: card_holder.mobile_phone,
|
98
|
+
address_match: address_match,
|
99
|
+
billing_name: billing.name,
|
100
|
+
billing_address1: billing.address1,
|
101
|
+
billing_city: billing.city,
|
102
|
+
billing_postal_code: billing.postal_code,
|
103
|
+
billing_country: billing.country,
|
104
|
+
shipping_name: shipping.name,
|
105
|
+
shipping_address1: shipping.address1,
|
106
|
+
shipping_city: shipping.city,
|
107
|
+
shipping_postal_code: shipping.postal_code,
|
108
|
+
shipping_country: shipping.country,
|
109
|
+
# Deprecated Attrs, will remove
|
110
|
+
currency: currency,
|
111
|
+
}
|
112
112
|
base_attributes.merge(payment_attributes)
|
113
113
|
else
|
114
114
|
base_attributes
|