catarse_pagarme 2.7.14 → 2.7.15

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
  SHA1:
3
- metadata.gz: 64917b88fa785e17b6a46b2fffe652e543e49658
4
- data.tar.gz: d523792d29cd7f16899fa93aa25ecef903aaa122
3
+ metadata.gz: 0f85c30f30b3aedff1be40d37d3d06fa3389985c
4
+ data.tar.gz: e8257e8c01356915e665fdf4d18a9db70fad9995
5
5
  SHA512:
6
- metadata.gz: d9572cf6e8483a30f8c920869405a93608985feb34ffd8acfa9e3f9a863cbc96a830d0979eb5e613f6ed8bc360ab5d68ce345f0f2286d9ad8d6df56d41f729ac
7
- data.tar.gz: fbccfc7e54dc617e1c4a049837265d2b76c4200fbeb9579da5c7e80c10cdf3d72cf6fe9121765549fd7a9fa5069bf4449ea78042fd8e00037b2a26d58ff8faf1
6
+ metadata.gz: 88d44e5aaa0d4bd1eef91c28d057daee181f04dda2fe26d963219f8392fcc948b047768fe74c639e0083ad407b08e9677557e5bfd90753ed25fd1bdb284794c8
7
+ data.tar.gz: 766a84c02bf46085fb15413067503a8701afa90f2badf6e38a7d476342f415e5c289856a739c5c9a53dafc2250ad529fd7315607eff3a73d7b62c3917deaf177
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- catarse_pagarme (2.7.14)
4
+ catarse_pagarme (2.7.15)
5
5
  pagarme (= 1.10.0)
6
6
  rails (~> 4.0)
7
7
  sidekiq
@@ -108,14 +108,15 @@ module CatarsePagarme
108
108
  amount: value_for_transaction
109
109
  })
110
110
  transfer.create
111
+ raise "unable to create a transfer" unless transfer.id.present?
111
112
 
113
+ #avoid sending notification
114
+ payment.update_attributes(state: 'pending_refund')
112
115
  payment.payment_transfers.create!({
113
116
  user: payment.user,
114
117
  transfer_id: transfer.id,
115
118
  transfer_data: transfer.to_json
116
119
  })
117
- #avoid sending notification
118
- payment.update_attributes(state: 'pending_refund')
119
120
  end
120
121
 
121
122
  protected
@@ -1,3 +1,3 @@
1
1
  module CatarsePagarme
2
- VERSION = "2.7.14"
2
+ VERSION = "2.7.15"
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.7.14
4
+ version: 2.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antônio Roberto Silva