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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b9982226999e1cfea7f28e18b63eb75180ce9d8f022ed7633e0ce79996517e4
4
- data.tar.gz: ffed64d81a6027874b028c06c9373ba4db099ec5c802bca15a0b76a4cefae0b8
3
+ metadata.gz: a76edf5d921274105962ac68ad9d9dd9ac6de1eeb9ecdd1416ad0c98eb6e3def
4
+ data.tar.gz: 5d3396ad8db84dda9cec80b4acffff190d0e94cc2b2fce22adfbe9767b0d60fa
5
5
  SHA512:
6
- metadata.gz: 61c6749cd9e29c4b419fd4a297b65140ed5cd7caa6a3079e5a73cdcba447f475d9c9d8b4e916c1aea587135c058fda9a9451adb0d30ea871aaeb9951f6e252a5
7
- data.tar.gz: 60bcc5413cbbbee897f363471221a62b7794c96bf2e61be6be2b63b8734469ed1fa95041d2095e68246d816d15160d20d1eaf3354adb3edf12eade85bdd95e00
6
+ metadata.gz: 2d8714bd7b056bf7f1b68943b62b76e893b1996f9730d8b1a151ab2ce6d53522365ea5423a20cb0830367ead761f6a547001d85c02b34b9635ae69607edb81f8
7
+ data.tar.gz: b6cb09f18b17619ae82fba5345d32009809d28202742c49a73eae19dd978a31f53880228d5544733ddea9997140a914b88d24995a45e8474bd22341e8fd7ac74
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.1.0'.freeze
2
+ VERSION = '1.3.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.1.0
4
+ version: 1.3.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-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.1.0
147
- source_code_uri: https://github.com/cloudsailor/spree_payu/tree/1.1.0
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: