solidus_inter 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/solidus_inter/gateway.rb +20 -0
- data/app/models/solidus_inter/inter_pix.rb +1 -1
- data/lib/solidus_inter/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aa0fdda876bf2dd7b36faa4f0ee3de9e37846e83f234efc222f935d89831417
|
4
|
+
data.tar.gz: 25d93553c05adf4a56fad8ca46ac5eb5a98966daceed65a222572589e5c9eaae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df48e93c2cd5df49a9e14d309bf8320a6f8af512a24f4e9745cb2a32fc457992214b7184ca631d034515864d4ec91b10e65212c23be82410fca7941b7bba60b
|
7
|
+
data.tar.gz: 0c37bd2d1bb18d24609d29fa90d4e56815570a068442b62c0e66e7a418ade329482d1c054e23cc932abad31bed630477e64a9afe6b25d0bde325b25388ce032d
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module SolidusInter
|
2
|
+
class Gateway
|
3
|
+
def initialize options
|
4
|
+
end
|
5
|
+
|
6
|
+
def void(transaction_id, options = {})
|
7
|
+
# Respondendo sempre com successful_response para funcionar o botão de "Cancelar" do pedido. Reembolso deve ser feito por fora.
|
8
|
+
successful_response("Pedido cancelado. Se necessário, realize o reembolso.", transaction_id)
|
9
|
+
end
|
10
|
+
|
11
|
+
def successful_response message, transaction_id
|
12
|
+
ActiveMerchant::Billing::Response.new(
|
13
|
+
true,
|
14
|
+
message,
|
15
|
+
{},
|
16
|
+
authorization: transaction_id
|
17
|
+
)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
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.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ulysses
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- README.md
|
106
106
|
- Rakefile
|
107
107
|
- app/models/solidus_inter/account.rb
|
108
|
+
- app/models/solidus_inter/gateway.rb
|
108
109
|
- app/models/solidus_inter/inter_pix.rb
|
109
110
|
- app/models/solidus_inter/pix_payment_source.rb
|
110
111
|
- app/views/spree/admin/payments/source_forms/_inter_pix.html.erb
|
@@ -136,7 +137,7 @@ metadata:
|
|
136
137
|
homepage_uri: https://github.com/ulysses-bull/solidus_inter#readme
|
137
138
|
source_code_uri: https://github.com/ulysses-bull/solidus_inter
|
138
139
|
changelog_uri: https://github.com/ulysses-bull/solidus_inter/blob/main/CHANGELOG.md
|
139
|
-
post_install_message:
|
140
|
+
post_install_message:
|
140
141
|
rdoc_options: []
|
141
142
|
require_paths:
|
142
143
|
- lib
|
@@ -154,8 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
155
|
- !ruby/object:Gem::Version
|
155
156
|
version: '0'
|
156
157
|
requirements: []
|
157
|
-
rubygems_version: 3.5.
|
158
|
-
signing_key:
|
158
|
+
rubygems_version: 3.5.11
|
159
|
+
signing_key:
|
159
160
|
specification_version: 4
|
160
161
|
summary: ''
|
161
162
|
test_files: []
|