spree_payu 1.0.0 → 1.2.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: 6c1a8659a979bd36940e4512dade096c03e5f7a43a21fe626034e3f9b8e431d6
|
4
|
+
data.tar.gz: 84eeb021f0f0eef709953c1033694e13a7ef991713af3df3e05f7cb3b27f27de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258ef5e735eea5c7497eadd2bff74f1f156f19a54a73449c6464aa3b9b4bbe98658611fcae70c82cfaebe8bdb310b930e09294b1b419549d9ff9cdb2f97f5877
|
7
|
+
data.tar.gz: df3de14c5f4f1952ce8436de0b328255d47f08545f2ee1926deb22f257dfcf8c5e9804f2fb3313b75157ef0a560c623b12cf90701fe2fb9bafc036590f7cfa37
|
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.2.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-08-01 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/
|
147
|
-
source_code_uri: https://github.com/cloudsailor/spree_payu/tree/
|
145
|
+
changelog_uri: https://github.com/cloudsailor/spree_payu/releases/tag/1.2.0
|
146
|
+
source_code_uri: https://github.com/cloudsailor/spree_payu/tree/1.2.0
|
148
147
|
post_install_message:
|
149
148
|
rdoc_options: []
|
150
149
|
require_paths:
|