solidus_inter 1.1.0 → 1.1.1

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: 65574da9c18ba2b6a8614c875587a9b088c033b0aabfb5ff66781db662dfd5d5
4
- data.tar.gz: f6781e3a2b08c876cca2b213f9d3911ec64573222356e2b9ba9ab59c36fa6f27
3
+ metadata.gz: 9f8527b4fe113c48cde458b6dd290795d126c040c52f1f4f591010017b2e1f10
4
+ data.tar.gz: 95d4f66b4f3df7d7bda6198c300c31d2afd928cc6ccb1f71e06c8aed5fc611cc
5
5
  SHA512:
6
- metadata.gz: d8335b7d7dee01e2616b261f919c1fdb621ff9c025adc39fb6e7f22d1b71e7272060a44689fc9a0b3bacc7ba6797c65c41da562a703655c89edd0753f46b1a17
7
- data.tar.gz: 896f661ccde79b9153572302a552328ef32fdceee38a6b902bedb822fc3b8da58534fb1ea3c1388460a37ac98c7d606a69481af3bb15d64c5e4d8d799795550d
6
+ metadata.gz: 83b9e1a62a7b57e7b4dd1e81bda915d0dfd816c18e7aea34a7a777830bf009f7f7609b948635aef92c4534309f010669b8554b9c1b6137e00149ac2e4f85beca
7
+ data.tar.gz: 9f51b1ad2e8014ec45168b7700655c8177849688183a590ef3351bf00c27f40b66a14f3afe52b1c9cac03f63554e0c3bbff8bef00602c6ff47481ab85b178628
@@ -54,10 +54,12 @@ module SolidusInter
54
54
  end
55
55
 
56
56
  def invalidate_payment(payment)
57
- return unless payment && payment.source.txid
57
+ return false unless payment && payment.source.txid
58
58
  inter_payment = find_payment(payment.source.txid)
59
+ return false if inter_payment.paid?
59
60
  inter_payment.invalidate!
60
61
  payment.log_entries.create!(parsed_payment_response_details_with_fallback: failure_response("Pagamento cancelado"))
62
+ true
61
63
  end
62
64
 
63
65
  def purchase(money, source, options = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusInter
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_inter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ulysses
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-03 00:00:00.000000000 Z
11
+ date: 2024-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core