spree_payu 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/spree/gateway/payu.rb +8 -1
- data/lib/spree_payu/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a76edf5d921274105962ac68ad9d9dd9ac6de1eeb9ecdd1416ad0c98eb6e3def
|
4
|
+
data.tar.gz: 5d3396ad8db84dda9cec80b4acffff190d0e94cc2b2fce22adfbe9767b0d60fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d8714bd7b056bf7f1b68943b62b76e893b1996f9730d8b1a151ab2ce6d53522365ea5423a20cb0830367ead761f6a547001d85c02b34b9635ae69607edb81f8
|
7
|
+
data.tar.gz: b6cb09f18b17619ae82fba5345d32009809d28202742c49a73eae19dd978a31f53880228d5544733ddea9997140a914b88d24995a45e8474bd22341e8fd7ac74
|
data/README.md
CHANGED
@@ -89,7 +89,7 @@ module Spree
|
|
89
89
|
phone: order.billing_address.phone,
|
90
90
|
firstName: order.billing_address.firstname,
|
91
91
|
lastName: order.billing_address.lastname,
|
92
|
-
language: order.billing_address.country.iso
|
92
|
+
language: language(order.billing_address.country.iso),
|
93
93
|
delivery: {
|
94
94
|
street: order.shipping_address.address1,
|
95
95
|
postalCode: order.shipping_address.zipcode,
|
@@ -190,5 +190,12 @@ module Spree
|
|
190
190
|
payment.update(private_metadata: private_metadata)
|
191
191
|
true
|
192
192
|
end
|
193
|
+
|
194
|
+
def language(country_iso)
|
195
|
+
country_iso = country_iso&.downcase
|
196
|
+
country_iso = 'cs' if country_iso == 'cz'
|
197
|
+
|
198
|
+
country_iso || 'en'
|
199
|
+
end
|
193
200
|
end
|
194
201
|
end
|
data/lib/spree_payu/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_payu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Cloud Sailor
|
8
|
-
- Cloud Sailor Sp. z o.o.
|
7
|
+
- Cloud Sailor
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2024-
|
11
|
+
date: 2024-09-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: deface
|
@@ -143,8 +142,8 @@ licenses:
|
|
143
142
|
- BSD-3-Clause
|
144
143
|
metadata:
|
145
144
|
bug_tracker_uri: https://github.com/cloudsailor/spree_payu/issues
|
146
|
-
changelog_uri: https://github.com/cloudsailor/spree_payu/releases/tag/1.
|
147
|
-
source_code_uri: https://github.com/cloudsailor/spree_payu/tree/1.
|
145
|
+
changelog_uri: https://github.com/cloudsailor/spree_payu/releases/tag/1.3.0
|
146
|
+
source_code_uri: https://github.com/cloudsailor/spree_payu/tree/1.3.0
|
148
147
|
post_install_message:
|
149
148
|
rdoc_options: []
|
150
149
|
require_paths:
|