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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5cf253edf3740df0178687448f76d33ac7307dfc4e0365c97cd74a8942d0c70
|
4
|
+
data.tar.gz: 6102f081c3a8777089cbf4b104e555289f58f09bf87c13397fdf977685db2a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e570aa0e9cba1ac76665fe9b57a6af2245cf503132e47560d2a08be7abe8dbaa4cc431c34cbc908c1392fbbf7ed9a2423379ebf6b699c95e167d12a76669e79f
|
7
|
+
data.tar.gz: 90b5aaa7df3bdc6620b45b67745f0493e2ad0fb0e3b55aca83653c820f8d3c064a7205fb057fce2a112a01477d9fa4d42b36844b2cbb5945ac2dcd7cd8274528
|
data/Gemfile.lock
CHANGED
@@ -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(
|
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
|