catarse_pagarme 2.14.9 → 2.14.10

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: d6bd900c027efc0f4cfd1f961fb9d8e17b8691e1a8243128cdc7fd38d282ee3b
4
- data.tar.gz: a37990ef03118b2ad8891253b2f9391bd9a38932c3538e14adf2dd976ea507b1
3
+ metadata.gz: e5cf253edf3740df0178687448f76d33ac7307dfc4e0365c97cd74a8942d0c70
4
+ data.tar.gz: 6102f081c3a8777089cbf4b104e555289f58f09bf87c13397fdf977685db2a5f
5
5
  SHA512:
6
- metadata.gz: 70e99bae700e255f733c826db8c105483628035a5ab5615f36655cce233dc917ba3614f1520437ef3a13d67618bd83aac31c5f04321238a86e72b08a26e96bbb
7
- data.tar.gz: f3b5079d21cb9ad5c344460255a362c550bc2da80534a711662515e9951c54a5d79cbc026fd03cd3735496034bf3e77abfb62b8b2ab94286ddb9b673487d4938
6
+ metadata.gz: e570aa0e9cba1ac76665fe9b57a6af2245cf503132e47560d2a08be7abe8dbaa4cc431c34cbc908c1392fbbf7ed9a2423379ebf6b699c95e167d12a76669e79f
7
+ data.tar.gz: 90b5aaa7df3bdc6620b45b67745f0493e2ad0fb0e3b55aca83653c820f8d3c064a7205fb057fce2a112a01477d9fa4d42b36844b2cbb5945ac2dcd7cd8274528
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.14.9)
4
+ catarse_pagarme (2.14.10)
5
5
  countries (= 3.0.0)
6
6
  konduto-ruby (= 2.1.0)
7
7
  pagarme (= 2.1.4)
@@ -15,6 +15,8 @@ module CatarsePagarme
15
15
  payment.destroy if payment.persisted? && !payment.gateway_id.present?
16
16
 
17
17
  render json: { payment_status: 'failed', message: e.message }
18
+ rescue => e
19
+ raven_capture(e)
18
20
  end
19
21
 
20
22
  def get_installment_json
@@ -6,7 +6,7 @@ module CatarsePagarme
6
6
  def create
7
7
  transaction = SlipTransaction.new(slip_attributes, payment).charge!
8
8
 
9
- render json: { boleto_url: transaction.boleto_url, payment_status: transaction.status }
9
+ render json: { boleto_url: transaction.boleto_url, payment_status: transaction.status, gateway_data: payment.gateway_data }
10
10
  rescue PagarMe::PagarMeError => e
11
11
  raven_capture(e)
12
12
  render json: { boleto_url: nil, payment_status: 'failed', message: e.message }
@@ -9,7 +9,9 @@ module CatarsePagarme
9
9
  payment.errors.messages.values.flatten.to_sentence)
10
10
  end
11
11
 
12
- self.transaction = PagarMe::Transaction.new(self.attributes.merge(payment_method: 'boleto'))
12
+ self.transaction = PagarMe::Transaction.new(
13
+ self.attributes.merge(payment_method: 'boleto', async: false)
14
+ )
13
15
  self.transaction.charge
14
16
 
15
17
  change_payment_state
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.14.9"
2
+ VERSION = "2.14.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catarse_pagarme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.9
4
+ version: 2.14.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva