spree_vpago 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +20 -20
- data/app/models/spree/gateway/payway_v2.rb +1 -0
- data/lib/spree_vpago/version.rb +1 -1
- data/lib/vpago/payway_v2/base.rb +9 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc59b39533f02adc34b7b7edc24d3bbe009dbe3b00b061926524fe02a186c68a
|
|
4
|
+
data.tar.gz: 47cb85dd273e6fcc594950d407f10727098ccdc6341e153d0d1704af8682f465
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c93a137f4412f7fd4812695da770bca17c323492f3d88c2acbafbaaac638093b9b2c044bd71ccf4e0d28b56274407ef7b311939f4ebc18b68ecf04aa047fe18f
|
|
7
|
+
data.tar.gz: d1e84acedcfdfc08d05b5e106a89cd7c807bd8c997d6038b4b0210b3b3396e24ac274efff24d82494c60dcbc0508a437adb59b27a00c2ccaabbbb0596b280188
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
spree_vpago (2.1.
|
|
4
|
+
spree_vpago (2.1.3)
|
|
5
5
|
faraday
|
|
6
6
|
google-cloud-firestore
|
|
7
7
|
spree_api (>= 4.5)
|
|
@@ -198,12 +198,12 @@ GEM
|
|
|
198
198
|
flatpickr (4.6.13.1)
|
|
199
199
|
friendly_id (5.5.0)
|
|
200
200
|
activerecord (>= 4.0.0)
|
|
201
|
-
gapic-common (1.
|
|
201
|
+
gapic-common (1.2.0)
|
|
202
202
|
faraday (>= 1.9, < 3.a)
|
|
203
203
|
faraday-retry (>= 1.0, < 3.a)
|
|
204
204
|
google-cloud-env (~> 2.2)
|
|
205
205
|
google-logging-utils (~> 0.1)
|
|
206
|
-
google-protobuf (
|
|
206
|
+
google-protobuf (~> 4.26)
|
|
207
207
|
googleapis-common-protos (~> 1.6)
|
|
208
208
|
googleapis-common-protos-types (~> 1.15)
|
|
209
209
|
googleauth (~> 1.12)
|
|
@@ -228,30 +228,30 @@ GEM
|
|
|
228
228
|
base64 (~> 0.2)
|
|
229
229
|
faraday (>= 1.0, < 3.a)
|
|
230
230
|
google-cloud-errors (1.5.0)
|
|
231
|
-
google-cloud-firestore (3.1.
|
|
231
|
+
google-cloud-firestore (3.1.1)
|
|
232
232
|
bigdecimal (~> 3.0)
|
|
233
233
|
concurrent-ruby (~> 1.0)
|
|
234
234
|
google-cloud-core (~> 1.7)
|
|
235
235
|
google-cloud-firestore-v1 (~> 2.0)
|
|
236
236
|
rbtree (~> 0.4.2)
|
|
237
|
-
google-cloud-firestore-v1 (2.
|
|
238
|
-
gapic-common (~> 1.
|
|
237
|
+
google-cloud-firestore-v1 (2.2.1)
|
|
238
|
+
gapic-common (~> 1.2)
|
|
239
239
|
google-cloud-errors (~> 1.0)
|
|
240
240
|
google-cloud-location (~> 1.0)
|
|
241
|
-
google-cloud-location (1.1
|
|
242
|
-
gapic-common (~> 1.
|
|
241
|
+
google-cloud-location (1.2.1)
|
|
242
|
+
gapic-common (~> 1.2)
|
|
243
243
|
google-cloud-errors (~> 1.0)
|
|
244
244
|
google-logging-utils (0.2.0)
|
|
245
|
-
google-protobuf (4.
|
|
245
|
+
google-protobuf (4.33.0)
|
|
246
246
|
bigdecimal
|
|
247
247
|
rake (>= 13)
|
|
248
|
-
googleapis-common-protos (1.
|
|
249
|
-
google-protobuf (
|
|
250
|
-
googleapis-common-protos-types (~> 1.
|
|
248
|
+
googleapis-common-protos (1.9.0)
|
|
249
|
+
google-protobuf (~> 4.26)
|
|
250
|
+
googleapis-common-protos-types (~> 1.21)
|
|
251
251
|
grpc (~> 1.41)
|
|
252
|
-
googleapis-common-protos-types (1.
|
|
253
|
-
google-protobuf (
|
|
254
|
-
googleauth (1.15.
|
|
252
|
+
googleapis-common-protos-types (1.22.0)
|
|
253
|
+
google-protobuf (~> 4.26)
|
|
254
|
+
googleauth (1.15.1)
|
|
255
255
|
faraday (>= 1.0, < 3.a)
|
|
256
256
|
google-cloud-env (~> 2.2)
|
|
257
257
|
google-logging-utils (~> 0.1)
|
|
@@ -259,7 +259,7 @@ GEM
|
|
|
259
259
|
multi_json (~> 1.11)
|
|
260
260
|
os (>= 0.9, < 2.0)
|
|
261
261
|
signet (>= 0.16, < 2.a)
|
|
262
|
-
grpc (1.
|
|
262
|
+
grpc (1.76.0)
|
|
263
263
|
google-protobuf (>= 3.25, < 5.0)
|
|
264
264
|
googleapis-common-protos-types (~> 1.0)
|
|
265
265
|
hashdiff (1.1.0)
|
|
@@ -276,7 +276,7 @@ GEM
|
|
|
276
276
|
inline_svg (1.10.0)
|
|
277
277
|
activesupport (>= 3.0)
|
|
278
278
|
nokogiri (>= 1.6)
|
|
279
|
-
jquery-rails (4.6.
|
|
279
|
+
jquery-rails (4.6.1)
|
|
280
280
|
rails-dom-testing (>= 1, < 3)
|
|
281
281
|
railties (>= 4.2.0)
|
|
282
282
|
thor (>= 0.14, < 2.0)
|
|
@@ -409,9 +409,9 @@ GEM
|
|
|
409
409
|
redis-client (0.14.1)
|
|
410
410
|
connection_pool
|
|
411
411
|
regexp_parser (2.8.0)
|
|
412
|
-
responders (3.
|
|
413
|
-
actionpack (>=
|
|
414
|
-
railties (>=
|
|
412
|
+
responders (3.2.0)
|
|
413
|
+
actionpack (>= 7.0)
|
|
414
|
+
railties (>= 7.0)
|
|
415
415
|
rexml (3.2.5)
|
|
416
416
|
rspec-activemodel-mocks (1.1.0)
|
|
417
417
|
activemodel (>= 3.0)
|
|
@@ -4,6 +4,7 @@ module Spree
|
|
|
4
4
|
preference :api_key, :string
|
|
5
5
|
preference :merchant_id, :string
|
|
6
6
|
preference :payment_option, :string # 'abapay', 'cards', 'abapay_deeplink'
|
|
7
|
+
preference :app_scheme, :text
|
|
7
8
|
preference :transaction_fee_fix, :string
|
|
8
9
|
preference :transaction_fee_percentage, :string
|
|
9
10
|
preference :public_key, :text
|
data/lib/spree_vpago/version.rb
CHANGED
data/lib/vpago/payway_v2/base.rb
CHANGED
|
@@ -105,9 +105,15 @@ module Vpago
|
|
|
105
105
|
# redirect to continue URL, let it handle redirecting to app.
|
|
106
106
|
# allowed override to specific app eg. from tg://t.me
|
|
107
107
|
def return_deeplink_url
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
app_scheme = @payment.payment_method.preferences[:app_scheme]
|
|
109
|
+
|
|
110
|
+
if app_scheme.present?
|
|
111
|
+
uri = URI.parse(continue_success_url)
|
|
112
|
+
uri.scheme = app_scheme
|
|
113
|
+
uri.to_s
|
|
114
|
+
else
|
|
115
|
+
continue_success_url
|
|
116
|
+
end
|
|
111
117
|
end
|
|
112
118
|
|
|
113
119
|
def return_deeplink
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_vpago
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- You
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|