spree_vpago 2.4.3 → 2.4.4.pre.pre2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c60cd32b8e9acf6a13c8f3190521841f2305566a750750dd8ae050eb65728859
4
- data.tar.gz: 0c7dfd54ac257faa8ec0690cb529d2c42ac74dfe4f4103daf16f39a95794818d
3
+ metadata.gz: 202902b6e4c3b29b5b45a8c0471682383677fccdd17e97a22c64a756aa44860b
4
+ data.tar.gz: 03a0c008c59b265e6fba2cd0ccdf03aefdd0d0bd0e00441ebd1166f18645ad68
5
5
  SHA512:
6
- metadata.gz: 7306bfdaa203f43b7bd28e1f8237efb3b4c6c72dc98160d6e1ec6afdddace2871ca790fc133b5dde2cc6b7e4703fdcdbf0ed99b2d3f5e258f2a3be20b7a38657
7
- data.tar.gz: da6a16929e7b9b11427e922ceb8dafdc236ec876e9047666eb062700b767b0030b75ee2fa15543fe3f03ed5a9920ad2efe79add77f4fc3c5471aa918f2081ac1
6
+ metadata.gz: 054dc39c5550b3a6b8389b646960199ae0ea9c85a331088b1f811dc11ffdbb5df721bb7eb0a59e978d7cd4f941cede25d751d266e86fa02b047afb3ce2c56ff5
7
+ data.tar.gz: 3394860ee34f39008253d2aea8162036cb290ffb887d4d36124ee3176676fc9cd30d762f2be395dba2cbbc40369efbadf4bd91ddf33c64b5f9af9534df49b51e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spree_vpago (2.4.3)
4
+ spree_vpago (2.4.4.pre.pre2)
5
5
  faraday
6
6
  google-cloud-firestore
7
7
  spree_api (>= 4.5)
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cloud-check" viewBox="0 0 16 16">
2
+ <path fill-rule="evenodd" d="M10.354 6.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7 8.793l2.646-2.647a.5.5 0 0 1 .708 0z"/>
3
+ <path d="M4.406 3.342A5.53 5.53 0 0 1 8 2c2.69 0 4.923 2 5.166 4.579C14.758 6.804 16 8.137 16 9.773 16 11.569 14.502 13 12.687 13H3.781C1.708 13 0 11.366 0 9.318c0-1.763 1.266-3.223 2.942-3.593.143-.863.698-1.723 1.464-2.383zm.653.757c-.757.653-1.153 1.44-1.153 2.056v.448l-.445.049C2.064 6.805 1 7.952 1 9.318 1 10.785 2.23 12 3.781 12h8.906C13.98 12 15 10.988 15 9.773c0-1.216-1.02-2.228-2.313-2.228h-.5v-.5C12.188 4.825 10.328 3 8 3a4.53 4.53 0 0 0-2.941 1.1z"/>
4
+ </svg>
@@ -155,6 +155,27 @@ module Spree
155
155
  ActiveMerchant::Billing::Response.new(true, 'Payway Gateway: Payment has been canceled.')
156
156
  end
157
157
 
158
+ # Payment#sync_capture!: completes the payment only when ABA reports it captured for the full amount. Always the v2
159
+ # checker, unlike #check_transaction: v1's status 0 covers both held and captured.
160
+ def sync_capture(payment)
161
+ checker = Vpago::PaywayV2::TransactionStatusV2.new(payment).tap(&:call)
162
+ params = { check_transaction: checker.json_response }
163
+
164
+ unless checker.captured_in_full?
165
+ reported = [checker.payment_status || checker.error_message, checker.total_amount].compact.join(' ')
166
+ return ActiveMerchant::Billing::Response.new(false, "Payway Gateway: Not Captured in Full at ABA (#{reported}, expected #{checker.amount})", params)
167
+ end
168
+
169
+ success = true
170
+ success, params[:payout] = confirm_payouts(payment) if payout_total_from_response(payment).present?
171
+
172
+ if success
173
+ ActiveMerchant::Billing::Response.new(true, 'Payway Gateway: Captured at ABA', params)
174
+ else
175
+ ActiveMerchant::Billing::Response.new(false, 'Payway Gateway: Capture Failed', params)
176
+ end
177
+ end
178
+
158
179
  def check_transaction(payment)
159
180
  # ABA requires the use of the v2 API, but it does not yet support payout responses.
160
181
  # Until v2 fully supports payouts, we fall back to v1 when payouts are enabled.
@@ -26,7 +26,7 @@ class Spree::VpagoPaymentSource < Spree::Base
26
26
  #
27
27
  # override
28
28
  def actions
29
- %w[open_checkout process capture void cancel]
29
+ %w[open_checkout process capture sync_capture void cancel]
30
30
  end
31
31
 
32
32
  def can_open_checkout?(payment)
@@ -51,6 +51,16 @@ class Spree::VpagoPaymentSource < Spree::Base
51
51
  payment.pending?
52
52
  end
53
53
 
54
+ # The flow is as follows: our capture failed -> ops captured the pre-auth in the ABA portal -> sync capture -> end.
55
+ # Capture would call ABA's completion again and fail on the already-captured hold; this only reads ABA's status.
56
+ # `failed` too: a pre-auth whose capture failed before captures stopped failing the payment is left there, and
57
+ # only this action can still complete it, since it completes nothing unless ABA confirms the full capture.
58
+ def can_sync_capture?(payment)
59
+ return false unless payment.order.completed? && payment.payment_method.enable_pre_auth?
60
+
61
+ payment.pending? || payment.processing? || payment.failed?
62
+ end
63
+
54
64
  # Spree has different refund logic, called credit. We use cancel as refund for now, but only for Vattanac/True Money.
55
65
  # In the future, we can adopt Spree's credit logic instead of cancel if needed.
56
66
  #
@@ -15,7 +15,7 @@
15
15
  #
16
16
  # Pre-auth capture! is the exception: it never leaves `pending` on failure, see #pre_auth_capture!.
17
17
  module Vpago
18
- module PaymentDecorator
18
+ module PaymentDecorator # rubocop:disable Metrics/ModuleLength
19
19
  def self.prepended(base)
20
20
  base.has_many :payouts, class_name: 'Spree::Payout', inverse_of: :payment
21
21
  base.after_create -> { Vpago::PayoutsGenerator.new(self).call }, if: :should_generate_payouts?
@@ -64,6 +64,25 @@ module Vpago
64
64
  super
65
65
  end
66
66
 
67
+ # Admin action (Spree::VpagoPaymentSource#can_sync_capture?) for a pre-auth captured outside our capture call,
68
+ # e.g. by ops in the ABA portal: reads ABA's status instead of capturing again.
69
+ def sync_capture!
70
+ return true if completed?
71
+
72
+ response = begin
73
+ payment_method.sync_capture(self)
74
+ rescue Faraday::Error => e
75
+ gateway_error(ActiveMerchant::ConnectionError.new(e.message, e))
76
+ end
77
+
78
+ record_response(response)
79
+ gateway_error(response) unless response.success?
80
+
81
+ capture_events.create!(amount: amount)
82
+ reset_for_retry! if failed? # Spree has no failed -> completed transition
83
+ complete!
84
+ end
85
+
67
86
  # override:
68
87
  # to allow capture faraday connection error. gateway_error method already write rails log for this.
69
88
  def protect_from_connection_error
@@ -36,8 +36,10 @@
36
36
  const deeplinkUrl = "<%= raw checkout.deeplink_url %>";
37
37
  const redirectTo = (url) => { if (url) window.location.href = url; };
38
38
 
39
-
40
- redirectTo(deeplinkUrl);
39
+ // Navigating mid-parse aborts the document, so the transaction checker rendered after this
40
+ // partial would never run -- and it's the only way off this page once the app hands the
41
+ // deeplink to the bank app and cancels the WebView navigation. Wait for load so polling has started.
42
+ window.addEventListener('load', () => redirectTo(deeplinkUrl));
41
43
  showRedirectContainer("Open ACLEDA", () => redirectTo(deeplinkUrl));
42
44
 
43
45
  </script>
@@ -10,6 +10,7 @@ en:
10
10
  insufficient_payment_amount_to_cover_the_total: "Payment amount is insufficient to cover the total"
11
11
  qr_code: "QR code"
12
12
  open_checkout: "Open Checkout"
13
+ sync_capture: "Sync capture from ABA"
13
14
  admin:
14
15
  orders:
15
16
  suspicious_orders: "Suspicious Orders"
@@ -6,6 +6,7 @@ spree:
6
6
  insufficient_payment_amount_to_cover_the_total: "ចំនួនទឹកប្រាក់នៃការទូទាត់គឺមិនគ្រប់គ្រាន់"
7
7
  qr_code: "QR code"
8
8
  open_checkout: "Open Checkout"
9
+ sync_capture: "Sync capture from ABA"
9
10
  admin:
10
11
  orders:
11
12
  suspicious_orders: "ការបង់ប្រាក់គួរឱ្យសង្ស័យ"
@@ -1,7 +1,7 @@
1
1
  module SpreeVpago
2
2
  module_function
3
3
 
4
- VERSION = '2.4.3'.freeze
4
+ VERSION = '2.4.4-pre2'.freeze
5
5
 
6
6
  def version
7
7
  Gem::Version.new VERSION
@@ -39,6 +39,17 @@ module Vpago
39
39
  %w[APPROVED PRE-AUTH].include?(payment_status)
40
40
  end
41
41
 
42
+ # A captured pre-auth reads APPROVED (PRE-AUTH while only held). The amount must be what completion
43
+ # captures, so a partial capture made in the ABA portal is never taken for the full payment.
44
+ def captured_in_full?
45
+ payment_status == 'APPROVED' && total_amount.present? && BigDecimal(total_amount.to_s) == BigDecimal(amount)
46
+ end
47
+
48
+ def total_amount
49
+ data = json_response['data']
50
+ data['total_amount'] if data.is_a?(Hash)
51
+ end
52
+
42
53
  # request failed does not mean payment failed.
43
54
  # but it failed when status is failed.
44
55
  def pending?
@@ -176,7 +176,7 @@
176
176
  "assertion-error@^2.0.1": "https://registry.yarnpkg.com/assertion-error/-/assertion-error-2.0.1.tgz#f641a196b335690b1070bf00b6e7593fec190bf7",
177
177
  "babel-dead-code-elimination@^1.0.12": "https://registry.yarnpkg.com/babel-dead-code-elimination/-/babel-dead-code-elimination-1.0.12.tgz#9471fc492fdfb7a0f7348aeacdaff3f1a9ecc6d3",
178
178
  "balanced-match@^1.0.0": "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee",
179
- "baseline-browser-mapping@^2.11.33": "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.34.tgz#d97a3dc0edb2f139758f7f2b1ae89552f391b35f",
179
+ "baseline-browser-mapping@^2.11.33": "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.35.tgz#3ca6f40d1c594ab494d8a21b05d5316528a41563",
180
180
  "binary-extensions@^2.0.0": "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522",
181
181
  "brace-expansion@^2.0.1": "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae",
182
182
  "braces@~3.0.2": "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789",
@@ -196,22 +196,22 @@
196
196
  "convert-source-map@^2.0.0": "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a",
197
197
  "cookie-es@^3.0.0": "https://registry.yarnpkg.com/cookie-es/-/cookie-es-3.1.1.tgz#c4a8a16cf88cb5a185b23f4a61d6e9a85eb53287",
198
198
  "cross-spawn@^7.0.6": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f",
199
- "d3-array@2 - 3": "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.4.tgz#15fec33b237f97ac5d7c986dc77da273a8ed0bb5",
200
- "d3-array@2.10.0 - 3": "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.4.tgz#15fec33b237f97ac5d7c986dc77da273a8ed0bb5",
201
- "d3-array@^3.1.6": "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.4.tgz#15fec33b237f97ac5d7c986dc77da273a8ed0bb5",
202
- "d3-color@1 - 3": "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2",
203
- "d3-ease@^3.0.1": "https://registry.yarnpkg.com/d3-ease/-/d3-ease-3.0.1.tgz#9658ac38a2140d59d346160f1f6c30fda0bd12f4",
204
- "d3-format@1 - 3": "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.2.tgz#01fdb46b58beb1f55b10b42ad70b6e344d5eb2ae",
205
- "d3-interpolate@1.2.0 - 3": "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz#3c47aa5b32c5b3dfb56ef3fd4342078a632b400d",
206
- "d3-interpolate@^3.0.1": "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz#3c47aa5b32c5b3dfb56ef3fd4342078a632b400d",
207
- "d3-path@^3.1.0": "https://registry.yarnpkg.com/d3-path/-/d3-path-3.1.0.tgz#22df939032fb5a71ae8b1800d61ddb7851c42526",
208
- "d3-scale@^4.0.2": "https://registry.yarnpkg.com/d3-scale/-/d3-scale-4.0.2.tgz#82b38e8e8ff7080764f8dcec77bd4be393689396",
209
- "d3-shape@^3.1.0": "https://registry.yarnpkg.com/d3-shape/-/d3-shape-3.2.0.tgz#a1a839cbd9ba45f28674c69d7f855bcf91dfc6a5",
210
- "d3-time-format@2 - 4": "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-4.1.0.tgz#7ab5257a5041d11ecb4fe70a5c7d16a195bb408a",
211
- "d3-time@1 - 3": "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.0.tgz#9310db56e992e3c0175e1ef385e545e48a9bb5c7",
212
- "d3-time@2.1.1 - 3": "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.0.tgz#9310db56e992e3c0175e1ef385e545e48a9bb5c7",
213
- "d3-time@^3.0.0": "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.0.tgz#9310db56e992e3c0175e1ef385e545e48a9bb5c7",
214
- "d3-timer@^3.0.1": "https://registry.yarnpkg.com/d3-timer/-/d3-timer-3.0.1.tgz#6284d2a2708285b1abb7e201eda4380af35e63b0",
199
+ "d3-array@2 - 3": "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.5.tgz#4df964c852ae836a15cb2146f7e3ab7a4621d2b4",
200
+ "d3-array@2.10.0 - 3": "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.5.tgz#4df964c852ae836a15cb2146f7e3ab7a4621d2b4",
201
+ "d3-array@^3.1.6": "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.5.tgz#4df964c852ae836a15cb2146f7e3ab7a4621d2b4",
202
+ "d3-color@1 - 3": "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.1.tgz#72442183223bc5bfd044745e9df2b2d242de744a",
203
+ "d3-ease@^3.0.1": "https://registry.yarnpkg.com/d3-ease/-/d3-ease-3.0.2.tgz#8b5e1e55bc581800425f9abe186d6d200087d22f",
204
+ "d3-format@1 - 3": "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.3.tgz#c6bd0f4058fc6e43ef2a8114f467a875322d5bd4",
205
+ "d3-interpolate@1.2.0 - 3": "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.2.tgz#09c66b39a3a32a93cfa90883dd38c9a5b22436a4",
206
+ "d3-interpolate@^3.0.1": "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.2.tgz#09c66b39a3a32a93cfa90883dd38c9a5b22436a4",
207
+ "d3-path@^3.1.1": "https://registry.yarnpkg.com/d3-path/-/d3-path-3.1.1.tgz#9bd21068c0713dabea2d8b4cf9e46b907b0c8f11",
208
+ "d3-scale@^4.0.2": "https://registry.yarnpkg.com/d3-scale/-/d3-scale-4.0.3.tgz#a482f46d5cc3bb6bbccc712769657c64f206a0c1",
209
+ "d3-shape@^3.1.0": "https://registry.yarnpkg.com/d3-shape/-/d3-shape-3.2.1.tgz#94eb40a42f74783365f98c20f5047417946ec83d",
210
+ "d3-time-format@2 - 4": "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-4.1.1.tgz#b29a443b4331e505447d5c3fa60be48376d794bd",
211
+ "d3-time@1 - 3": "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.1.tgz#8a2306d202ff96dbe35d5b92d45b8125ac7417a2",
212
+ "d3-time@2.1.1 - 3": "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.1.tgz#8a2306d202ff96dbe35d5b92d45b8125ac7417a2",
213
+ "d3-time@^3.0.0": "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.1.tgz#8a2306d202ff96dbe35d5b92d45b8125ac7417a2",
214
+ "d3-timer@^3.0.1": "https://registry.yarnpkg.com/d3-timer/-/d3-timer-3.0.2.tgz#35decb7421234fb6ec58cafd3d14351f945f2f37",
215
215
  "date-fns-tz@^3.2.0": "https://registry.yarnpkg.com/date-fns-tz/-/date-fns-tz-3.2.0.tgz#647dc56d38ac33a3e37b65e9d5c4cda5af5e58e6",
216
216
  "date-fns@^4.4.0": "https://registry.yarnpkg.com/date-fns/-/date-fns-4.4.0.tgz#806539edf45c616b2b76b5f78b88c56ed3c7e036",
217
217
  "debug@^4.1.0": "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a",
@@ -224,7 +224,7 @@
224
224
  "diff@^9.0.0": "https://registry.yarnpkg.com/diff/-/diff-9.0.0.tgz#297c31cd7c280f13dfe335791ec2063bd4a73a6f",
225
225
  "dompurify@^3.4.17": "https://registry.yarnpkg.com/dompurify/-/dompurify-3.4.17.tgz#074bbb24eaa419535ac19ffe7f663104b0e1543d",
226
226
  "eastasianwidth@^0.2.0": "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb",
227
- "electron-to-chromium@^1.5.464": "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.472.tgz#b860ae564ab5494afacea4523c7ca667097ae31d",
227
+ "electron-to-chromium@^1.5.464": "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.473.tgz#e8e7e7331ddf92b98557b771600b38dd463a0955",
228
228
  "emoji-regex@^8.0.0": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37",
229
229
  "emoji-regex@^9.2.2": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72",
230
230
  "es-toolkit@^1.39.3": "https://registry.yarnpkg.com/es-toolkit/-/es-toolkit-1.53.1.tgz#740294017da9f4ca052de31544648f3566b8ec5b",
@@ -274,7 +274,7 @@
274
274
  "loupe@^3.1.0": "https://registry.yarnpkg.com/loupe/-/loupe-3.1.3.tgz#042a8f7986d77f3d0f98ef7990a2b2fef18b0fd2",
275
275
  "lru-cache@^10.2.0": "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119",
276
276
  "lru-cache@^5.1.1": "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920",
277
- "lucide-react@^1.60.0": "https://registry.yarnpkg.com/lucide-react/-/lucide-react-1.66.0.tgz#0b7e0bdab15feb8e7c3188ce57493dd431c77309",
277
+ "lucide-react@^1.60.0": "https://registry.yarnpkg.com/lucide-react/-/lucide-react-1.67.0.tgz#deae5f32d2462108f925158f8aaa279b821459c0",
278
278
  "magic-string@^0.30.21": "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.21.tgz#56763ec09a0fa8091df27879fd94d19078c00d91",
279
279
  "minimatch@^5.1.6": "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96",
280
280
  "minimatch@^9.0.4": "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5",
@@ -312,7 +312,7 @@
312
312
  "reselect@^5.1.0": "https://registry.yarnpkg.com/reselect/-/reselect-5.3.0.tgz#0a3e3ed4436bdf2ab7c5e0f392dab2c062595d61",
313
313
  "safe-buffer@>=5.1.0": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6",
314
314
  "safe-buffer@^5.1.0": "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6",
315
- "semver@^6.3.1": "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4",
315
+ "semver@^6.3.1": "https://registry.yarnpkg.com/semver/-/semver-6.3.2.tgz#f50413fbe5a686c6379385b2e8789b61c124a3c7",
316
316
  "serialize-javascript@^6.0.2": "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2",
317
317
  "seroval-plugins@^1.6.7": "https://registry.yarnpkg.com/seroval-plugins/-/seroval-plugins-1.7.7.tgz#5c55fda39a117400632cd424a17fd01d7cb6cdf5",
318
318
  "seroval@^1.6.7": "https://registry.yarnpkg.com/seroval/-/seroval-1.7.7.tgz#8b244a008af8cd5d6c4a59b8cc1cfba3563e19a6",
data/yarn.lock CHANGED
@@ -1065,9 +1065,9 @@ balanced-match@^1.0.0:
1065
1065
  integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==
1066
1066
 
1067
1067
  baseline-browser-mapping@^2.11.33:
1068
- version "2.11.34"
1069
- resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.34.tgz#d97a3dc0edb2f139758f7f2b1ae89552f391b35f"
1070
- integrity sha512-Aqr8mA1kIvyJ3UY5YAY7ib8LSo1DmDMbMnVqGPtsKW1LxaFQFwn9Eb3yvq2fUKJsRvaXjnAV7R5osqETapzNiA==
1068
+ version "2.11.35"
1069
+ resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.35.tgz#3ca6f40d1c594ab494d8a21b05d5316528a41563"
1070
+ integrity sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==
1071
1071
 
1072
1072
  binary-extensions@^2.0.0:
1073
1073
  version "2.3.0"
@@ -1206,43 +1206,43 @@ cross-spawn@^7.0.6:
1206
1206
  which "^2.0.1"
1207
1207
 
1208
1208
  "d3-array@2 - 3", "d3-array@2.10.0 - 3", d3-array@^3.1.6:
1209
- version "3.2.4"
1210
- resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.4.tgz#15fec33b237f97ac5d7c986dc77da273a8ed0bb5"
1211
- integrity sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==
1209
+ version "3.2.5"
1210
+ resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-3.2.5.tgz#4df964c852ae836a15cb2146f7e3ab7a4621d2b4"
1211
+ integrity sha512-Th8qGXoBalmWsstpkuhmBuTsBQIFqYOJtjlBvNVvBfJ8E3uYusBUwUR8HU20U0qKKQkgCvKyR1YjiozWadk5QA==
1212
1212
  dependencies:
1213
1213
  internmap "1 - 2"
1214
1214
 
1215
1215
  "d3-color@1 - 3":
1216
- version "3.1.0"
1217
- resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.0.tgz#395b2833dfac71507f12ac2f7af23bf819de24e2"
1218
- integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==
1216
+ version "3.1.1"
1217
+ resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-3.1.1.tgz#72442183223bc5bfd044745e9df2b2d242de744a"
1218
+ integrity sha512-lfab8x0Bj0UO7SNsY8dZSbNIA6ipbkE3X0NG9nqjCu6CfCHZseuDnOSJY7hidKrjpP++i1M2qT+FlAdPKYRilA==
1219
1219
 
1220
1220
  d3-ease@^3.0.1:
1221
- version "3.0.1"
1222
- resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-3.0.1.tgz#9658ac38a2140d59d346160f1f6c30fda0bd12f4"
1223
- integrity sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==
1221
+ version "3.0.2"
1222
+ resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-3.0.2.tgz#8b5e1e55bc581800425f9abe186d6d200087d22f"
1223
+ integrity sha512-B5znKqRmKROAN4oHWQ50W/qisVjA9GXh2WMsVKdFVp4DxWmcrOsweqgUOUVsv5th96kwaZlokU6SlV4J3gak1w==
1224
1224
 
1225
1225
  "d3-format@1 - 3":
1226
- version "3.1.2"
1227
- resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.2.tgz#01fdb46b58beb1f55b10b42ad70b6e344d5eb2ae"
1228
- integrity sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==
1226
+ version "3.1.3"
1227
+ resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.3.tgz#c6bd0f4058fc6e43ef2a8114f467a875322d5bd4"
1228
+ integrity sha512-+F+/49swqmGuQJmSKnVMIDH/QkEFV5li9QRj0xm/KhyAUBv099O5PrvpQFxBp24PYph17Mnvt9mjKQV0ii0nMA==
1229
1229
 
1230
1230
  "d3-interpolate@1.2.0 - 3", d3-interpolate@^3.0.1:
1231
- version "3.0.1"
1232
- resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz#3c47aa5b32c5b3dfb56ef3fd4342078a632b400d"
1233
- integrity sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==
1231
+ version "3.0.2"
1232
+ resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.2.tgz#09c66b39a3a32a93cfa90883dd38c9a5b22436a4"
1233
+ integrity sha512-IRzGU62DtxhvsnSTWMQIdnoZ6gA+BCWwBon1EJI6SjoN595799b6z/QRBzXfFhE8iupUPp3042yBNo0STPqnzQ==
1234
1234
  dependencies:
1235
1235
  d3-color "1 - 3"
1236
1236
 
1237
- d3-path@^3.1.0:
1238
- version "3.1.0"
1239
- resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-3.1.0.tgz#22df939032fb5a71ae8b1800d61ddb7851c42526"
1240
- integrity sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==
1237
+ d3-path@^3.1.1:
1238
+ version "3.1.1"
1239
+ resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-3.1.1.tgz#9bd21068c0713dabea2d8b4cf9e46b907b0c8f11"
1240
+ integrity sha512-jsbgV8zIT38ReB9O7X7gcLndTQRONSqNNd+oGIaTBdUug4r5jFmp0N6RY9R5GWbdUDucn0qoTGyfjapT4tDhcg==
1241
1241
 
1242
1242
  d3-scale@^4.0.2:
1243
- version "4.0.2"
1244
- resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-4.0.2.tgz#82b38e8e8ff7080764f8dcec77bd4be393689396"
1245
- integrity sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==
1243
+ version "4.0.3"
1244
+ resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-4.0.3.tgz#a482f46d5cc3bb6bbccc712769657c64f206a0c1"
1245
+ integrity sha512-66cWobCNzcMvlfoaDHCxuIv9TBUWG1BLOWdv9kHHFuCr1JdqAWPvTmsaEYDD5NRMyWZ5+7u0GqiCDfMXMqh3hg==
1246
1246
  dependencies:
1247
1247
  d3-array "2.10.0 - 3"
1248
1248
  d3-format "1 - 3"
@@ -1251,30 +1251,30 @@ d3-scale@^4.0.2:
1251
1251
  d3-time-format "2 - 4"
1252
1252
 
1253
1253
  d3-shape@^3.1.0:
1254
- version "3.2.0"
1255
- resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-3.2.0.tgz#a1a839cbd9ba45f28674c69d7f855bcf91dfc6a5"
1256
- integrity sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==
1254
+ version "3.2.1"
1255
+ resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-3.2.1.tgz#94eb40a42f74783365f98c20f5047417946ec83d"
1256
+ integrity sha512-dm2o+lbKdzg9tY7GEag/dB9hcbodLfwkE/DkvqbELJXaMz0yKzWWhZqhbI7CKubukA7HnRyz0avdtvi7EPxPvw==
1257
1257
  dependencies:
1258
- d3-path "^3.1.0"
1258
+ d3-path "^3.1.1"
1259
1259
 
1260
1260
  "d3-time-format@2 - 4":
1261
- version "4.1.0"
1262
- resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-4.1.0.tgz#7ab5257a5041d11ecb4fe70a5c7d16a195bb408a"
1263
- integrity sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==
1261
+ version "4.1.1"
1262
+ resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-4.1.1.tgz#b29a443b4331e505447d5c3fa60be48376d794bd"
1263
+ integrity sha512-22XaqjyCjpqgda20erhsOjGmC3vvYwTNYniKAd45W5UWLDF43moeOuV9qYpRqobIlsnK0UhnKZjUUJm3VgORUA==
1264
1264
  dependencies:
1265
1265
  d3-time "1 - 3"
1266
1266
 
1267
1267
  "d3-time@1 - 3", "d3-time@2.1.1 - 3", d3-time@^3.0.0:
1268
- version "3.1.0"
1269
- resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.0.tgz#9310db56e992e3c0175e1ef385e545e48a9bb5c7"
1270
- integrity sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==
1268
+ version "3.1.1"
1269
+ resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-3.1.1.tgz#8a2306d202ff96dbe35d5b92d45b8125ac7417a2"
1270
+ integrity sha512-Ze7rjrhMzdeulh0/hjcfFj7XLAHOfowtEMfsoG6DU866HPynQNW7Wfen6hzXcqKTv8XzxvF6Hzr5XD6bMHr2ug==
1271
1271
  dependencies:
1272
1272
  d3-array "2 - 3"
1273
1273
 
1274
1274
  d3-timer@^3.0.1:
1275
- version "3.0.1"
1276
- resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-3.0.1.tgz#6284d2a2708285b1abb7e201eda4380af35e63b0"
1277
- integrity sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==
1275
+ version "3.0.2"
1276
+ resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-3.0.2.tgz#35decb7421234fb6ec58cafd3d14351f945f2f37"
1277
+ integrity sha512-1Il1aliroVSErrv5aulRBxAY+7+DnaoLIWGd1C6SsBTWDeobWiP/V69vwb8vT6abR1kKwaNe1196pmaQ1fK90A==
1278
1278
 
1279
1279
  date-fns-tz@^3.2.0:
1280
1280
  version "3.2.0"
@@ -1338,9 +1338,9 @@ eastasianwidth@^0.2.0:
1338
1338
  integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
1339
1339
 
1340
1340
  electron-to-chromium@^1.5.464:
1341
- version "1.5.472"
1342
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.472.tgz#b860ae564ab5494afacea4523c7ca667097ae31d"
1343
- integrity sha512-s4+nfT29b0FKpVKoaIxl2pWsoNcn7A/nMPSrxayw4T3BsmPeV2lF9Y06BsAQeMGhCTQ4nYJ5XST7jkqe4ZEqFw==
1341
+ version "1.5.473"
1342
+ resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.473.tgz#e8e7e7331ddf92b98557b771600b38dd463a0955"
1343
+ integrity sha512-9njcRQK+6FOXNAWw5g+h2RPiyazqo5RFMVJ39ZMHjDHUNnnFlhnOGV7O0WmJetODDx19ES5p+FLi+KCVFQGugw==
1344
1344
 
1345
1345
  emoji-regex@^8.0.0:
1346
1346
  version "8.0.0"
@@ -1664,9 +1664,9 @@ lru-cache@^5.1.1:
1664
1664
  yallist "^3.0.2"
1665
1665
 
1666
1666
  lucide-react@^1.60.0:
1667
- version "1.66.0"
1668
- resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-1.66.0.tgz#0b7e0bdab15feb8e7c3188ce57493dd431c77309"
1669
- integrity sha512-8zjbi/Us+ETXqfBwmXF/FHrWGIqOdE6zT1yUdRJLQVoptomSkB0zdFWVIM667t9K8djWDaXdkBkqi2qVTuDNiw==
1667
+ version "1.67.0"
1668
+ resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-1.67.0.tgz#deae5f32d2462108f925158f8aaa279b821459c0"
1669
+ integrity sha512-z7kd21YNm/Gw3E7mTnq5dTuvV+yc+OEwA//oDENSG1SbZ/NVgKdjxALJFNdGoC0Ji7HaJR2Dha9ev7VUPxy9CQ==
1670
1670
 
1671
1671
  magic-string@^0.30.21:
1672
1672
  version "0.30.21"
@@ -1895,9 +1895,9 @@ safe-buffer@>=5.1.0, safe-buffer@^5.1.0:
1895
1895
  integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
1896
1896
 
1897
1897
  semver@^6.3.1:
1898
- version "6.3.1"
1899
- resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4"
1900
- integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
1898
+ version "6.3.2"
1899
+ resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.2.tgz#f50413fbe5a686c6379385b2e8789b61c124a3c7"
1900
+ integrity sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==
1901
1901
 
1902
1902
  serialize-javascript@^6.0.2:
1903
1903
  version "6.0.2"
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.4.3
4
+ version: 2.4.4.pre.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - You
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-02 00:00:00.000000000 Z
11
+ date: 2026-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -132,6 +132,7 @@ files:
132
132
  - app/.gitkeep
133
133
  - app/assets/config/spree_vpago_manifest.js
134
134
  - app/assets/images/backend-process.svg
135
+ - app/assets/images/backend-sync_capture.svg
135
136
  - app/assets/images/payment_logos/acleda-cards.png
136
137
  - app/assets/images/payment_logos/acleda-khqr.png
137
138
  - app/assets/images/payment_logos/acleda.png
@@ -493,9 +494,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
493
494
  version: 3.2.0
494
495
  required_rubygems_version: !ruby/object:Gem::Requirement
495
496
  requirements:
496
- - - ">="
497
+ - - ">"
497
498
  - !ruby/object:Gem::Version
498
- version: '0'
499
+ version: 1.3.1
499
500
  requirements:
500
501
  - none
501
502
  rubygems_version: 3.4.1