solidus_inter 1.3.0 → 1.4.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: 3d3f4f88f750274042d3b1bd94367712b3dd24b8a17fd9cd122849b0f8cd9b40
4
- data.tar.gz: f8e470ebe491c5c6cfa92f08efe915652962a1a36c44aa0b0bdaefbd303614eb
3
+ metadata.gz: d353009ddf09bb6abbffc7d1eeed34dbfc5eb6338e7d824494ed812f6ad375ee
4
+ data.tar.gz: bdfdbb7028e40298b9da9bae697fa1e2616f93fa19ada427ce31b2a3cdb5902a
5
5
  SHA512:
6
- metadata.gz: 9dcabfbb7137fb2a2aa98d647ee892faf7a778f6478cd6fe291be91194a3b3ab5ada12d3b96ed413cb40e843e2aba94204909da9435d10d154e4f18e31eb69ab
7
- data.tar.gz: 8ab1645e4c3883dc5450284b2e29170bca5d49b059cf8c70d722d3fffa60163422fd983fbc3c069fdc79f759b056ea4f4d24e277dca2180ac4e90e0f06f8b6d1
6
+ metadata.gz: d309244f016236cfd25f53dab3f98d7626e76b6b2b6a0e7fe90c5ff48da8b3dbbfa1c5fbdd410b6e37b97a3fe44026e54e21023ef763b889529432b3fc531709
7
+ data.tar.gz: 66f6811322ceac55e06e31054566208bc38ba9282b22c1228fa5b445fc3948b2291c4051b334cc6a203e5b9b4a6213c516e9f6b8bbe5704eed5f56006467a266
@@ -62,6 +62,14 @@ module SolidusInter
62
62
  true
63
63
  end
64
64
 
65
+ def pay_test_payment payment
66
+ return false unless payment && payment.source.txid
67
+ inter_payment = find_payment(payment.source.txid)
68
+ return false if inter_payment.paid?
69
+ client = set_api_client
70
+ client.pay_pix(inter_payment.txid, inter_payment.valor_original)
71
+ end
72
+
65
73
  def purchase(money, source, options = {})
66
74
  inter_payment = find_payment(source.txid)
67
75
  if inter_payment.paid?
@@ -0,0 +1 @@
1
+ json.call(payment_source, :id, :txid, :status, :amount, :payer_name, :payer_tax_id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusInter
4
- VERSION = "1.3.0"
4
+ VERSION = "1.4.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.3.0
4
+ version: 1.4.1
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-10-14 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -135,7 +135,7 @@ metadata:
135
135
  homepage_uri: https://github.com/ulysses-bull/solidus_inter#readme
136
136
  source_code_uri: https://github.com/ulysses-bull/solidus_inter
137
137
  changelog_uri: https://github.com/ulysses-bull/solidus_inter/blob/main/CHANGELOG.md
138
- post_install_message:
138
+ post_install_message:
139
139
  rdoc_options: []
140
140
  require_paths:
141
141
  - lib
@@ -153,8 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.5.10
157
- signing_key:
156
+ rubygems_version: 3.5.11
157
+ signing_key:
158
158
  specification_version: 4
159
159
  summary: ''
160
160
  test_files: []