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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6bbbf7e5953de3462e71079455cd181b675b01ddb63e2c59f22f28e51afbd23
4
- data.tar.gz: ed0f1389c4e4113f64c72edb2d42671ade68db9045e117cc904fdc221c9f340a
3
+ metadata.gz: 13d30736b1da36214ee47ca3f39d7a476cf498e94dfd3f41c8f9372666d90bb6
4
+ data.tar.gz: 92eb7b041e5b4e54842d04258356c33248e727d84611e03fed1660e0214979f5
5
5
  SHA512:
6
- metadata.gz: 52049cba9cc3ef1cd7ff6a95fa02e16648bfd8aa2b534d25ce1017431e95aea215e64c947398fb78d9fb415988dec07c64c626ccd9c80463f3dc9afef6501837
7
- data.tar.gz: 8e3f76458acebae7b8ebf2270103047663db8aa907cd4a75b40e5ffb6de8eefe6a346e9a5ec6fcb0ad2dee57426a7a3bce5b1b10603453a6e52766dcaf8e96c1
6
+ metadata.gz: 45033725319c4b31883e93290c9066e7e599e484d9a0b7014e9c9806ab752fc486bd590d401d08000c4000bd9c49d95a71976ef5d619a41569138ce4b2dc1bdc
7
+ data.tar.gz: 822bf9de1d32673050689467a797e34c3568e929a8dd264c076fb34cd70058b1a0de723fd12732197e4a7a995af01fb9a9e778c1797f26eff5adb472e4b7e945
@@ -1,3 +1,3 @@
1
1
  module GpWebpay
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-gpwebpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrej Antas