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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/models/catarse_pagarme/payment_delegator.rb +3 -2
- data/lib/catarse_pagarme/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f85c30f30b3aedff1be40d37d3d06fa3389985c
|
4
|
+
data.tar.gz: e8257e8c01356915e665fdf4d18a9db70fad9995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88d44e5aaa0d4bd1eef91c28d057daee181f04dda2fe26d963219f8392fcc948b047768fe74c639e0083ad407b08e9677557e5bfd90753ed25fd1bdb284794c8
|
7
|
+
data.tar.gz: 766a84c02bf46085fb15413067503a8701afa90f2badf6e38a7d476342f415e5c289856a739c5c9a53dafc2250ad529fd7315607eff3a73d7b62c3917deaf177
|
data/Gemfile.lock
CHANGED
@@ -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
|