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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 389c665add62d8f5872a7625290a2d83761e1f74cb09319c32649d8030046b5c
4
- data.tar.gz: b970ec1bf56d496a749d144338b20ea637c2bcec090f1856b931b96ad7d660ac
3
+ metadata.gz: 6c1a8659a979bd36940e4512dade096c03e5f7a43a21fe626034e3f9b8e431d6
4
+ data.tar.gz: 84eeb021f0f0eef709953c1033694e13a7ef991713af3df3e05f7cb3b27f27de
5
5
  SHA512:
6
- metadata.gz: 1db75bafccfc395cd1d3fe074d12e647c6e1e4a351faef0ad7464e507f62b8b7448416108c6c94fe9bd87e88c8d1fa6b6a824b5bf43f2f214f1ac400c02e9f2c
7
- data.tar.gz: ef289aad163fc5086c23e33030b812c2da58e04e0f837a48225d0aface75104dea3a8f3f565ebbae763edf525e9c4afba94026d28e2a0c6382d6720c5d89c551
6
+ metadata.gz: 258ef5e735eea5c7497eadd2bff74f1f156f19a54a73449c6464aa3b9b4bbe98658611fcae70c82cfaebe8bdb310b930e09294b1b419549d9ff9cdb2f97f5877
7
+ data.tar.gz: df3de14c5f4f1952ce8436de0b328255d47f08545f2ee1926deb22f257dfcf8c5e9804f2fb3313b75157ef0a560c623b12cf90701fe2fb9bafc036590f7cfa37
data/README.md CHANGED
@@ -8,7 +8,7 @@ Install
8
8
 
9
9
  Add to your Gemfile:
10
10
 
11
- gem 'spree_payu', github: 'cloudsailor/spree_payu', branch: 'master'
11
+ gem 'spree_payu'
12
12
 
13
13
  and run
14
14
 
@@ -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.downcase,
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
@@ -1,5 +1,5 @@
1
1
  module SpreePayuGateway
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
 
4
4
  def self.version
5
5
  VERSION
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.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Cloud Sailor AS
8
- - Cloud Sailor Sp. z o.o.
7
+ - Cloud Sailor
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-07-26 00:00:00.000000000 Z
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/v1.0.0
147
- source_code_uri: https://github.com/cloudsailor/spree_payu/tree/v1.0.0
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: