mercadopago-custom-checkout 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c847503b7963a234e56100da1061e04e1e46ae45
|
4
|
+
data.tar.gz: 12908be981e0ffff53f4f4d0fb58d46f70837f83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35d82303e76abdfcd317743e1c6c1965143843292685d08b580e74986212140ac8c41c7cf61e8f8b980e0f2c74fb71694c2348d815bacab7118e6d90591e0274
|
7
|
+
data.tar.gz: 82c488dfe40c4f65089464df5a1017e689950aa3d5f65f58a9f9744e464d14f3c7fbbcb02bf2eb6399d88b9413722a36ff30b9363eefb2a71162a242869651aa
|
@@ -111,6 +111,11 @@ module MercadoPago
|
|
111
111
|
method: :post,
|
112
112
|
allowed_tokens: [:access_token]
|
113
113
|
},
|
114
|
+
refund: {
|
115
|
+
endpoint: "/%{version}/payments/%{id}/refunds",
|
116
|
+
method: :post,
|
117
|
+
allowed_tokens: [:access_token]
|
118
|
+
},
|
114
119
|
retrieve: {
|
115
120
|
endpoint: "/%{version}/payments/%{id}",
|
116
121
|
method: :get,
|
@@ -105,6 +105,10 @@ module MercadoPago
|
|
105
105
|
@client.call(:payments, :create, payload)
|
106
106
|
end
|
107
107
|
|
108
|
+
def full_refund_payment(payment_id, metadata = {})
|
109
|
+
@client.call(:payments, :refund, { id: payment_id, metadata: metadata } )
|
110
|
+
end
|
111
|
+
|
108
112
|
def payment(payment_id)
|
109
113
|
@client.call(:payments, :retrieve, { id: payment_id })
|
110
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercadopago-custom-checkout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agustin Cavilliotti
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|