mercadopago-sdk 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +14 -0
- data/examples/checkout-buttons/basic_preference/button.rb +1 -1
- data/examples/preapproval-payments/button.rb +1 -1
- data/lib/mercadopago.rb +4 -4
- data/lib/version.rb +1 -1
- data/travis_Gemfile +4 -0
- metadata +14 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7da46ec682afa2328d3fac50f789c51481c558ff0e9d063add5f427c93454bb
|
4
|
+
data.tar.gz: e00d97b529feb2094dac5e9de5da4f2ce23e4e2f941ce4864518dbfcd62a6008
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 729d0e2425b90155cfa102ce7f587ebc67eb0bbfea318eae5e19f8ffaf33aeeb7be68684883b5e2e0d9fcb7c0d1d44d31b5b1eb23f0508db96f85cc5a8c447a7
|
7
|
+
data.tar.gz: 01a93754e2303b0971d326d26ef67a3eff8ea5b85eefd534d47903b7ddedf9d5376cb729724cb00b2f2b78b698c67edc7938e678e1e90d9f75e533c77e4c0bec
|
data/.travis.yml
ADDED
@@ -17,7 +17,7 @@ class Button
|
|
17
17
|
</head>
|
18
18
|
<body>
|
19
19
|
<a href="' + preference['response']['init_point'] + '" name="MP-Checkout" class="orange-ar-m-sq-arall">Pay</a>
|
20
|
-
<script type="text/javascript" src="
|
20
|
+
<script type="text/javascript" src="//resources.mlstatic.com/mptools/render.js"></script>
|
21
21
|
</body>
|
22
22
|
</html>'
|
23
23
|
|
@@ -31,7 +31,7 @@ class Button
|
|
31
31
|
</head>
|
32
32
|
<body>
|
33
33
|
<a href="' + preapprovalPayment['response']['init_point'] + '" name="MP-Checkout" class="orange-ar-m-sq-arall">Pay</a>
|
34
|
-
<script type="text/javascript" src="
|
34
|
+
<script type="text/javascript" src="//resources.mlstatic.com/mptools/render.js"></script>
|
35
35
|
</body>
|
36
36
|
</html>'
|
37
37
|
|
data/lib/mercadopago.rb
CHANGED
@@ -69,7 +69,7 @@ class MercadoPago
|
|
69
69
|
end
|
70
70
|
|
71
71
|
uri_prefix = @sandbox ? "/sandbox" : ""
|
72
|
-
@rest_client.get(uri_prefix + "/
|
72
|
+
@rest_client.get(uri_prefix + "/v1/payments/" + id + "?access_token=" + access_token)
|
73
73
|
end
|
74
74
|
|
75
75
|
def get_payment_info(id)
|
@@ -96,7 +96,7 @@ class MercadoPago
|
|
96
96
|
end
|
97
97
|
|
98
98
|
refund_status = {"status" => "refunded"}
|
99
|
-
@rest_client.put("/
|
99
|
+
@rest_client.put("/v1/payments/" + id + "?access_token=" + access_token, refund_status)
|
100
100
|
end
|
101
101
|
|
102
102
|
# Cancel pending payment
|
@@ -108,7 +108,7 @@ class MercadoPago
|
|
108
108
|
end
|
109
109
|
|
110
110
|
cancel_status = {"status" => "cancelled"}
|
111
|
-
@rest_client.put("/
|
111
|
+
@rest_client.put("/v1/payments/" + id + "?access_token=" + access_token, cancel_status)
|
112
112
|
end
|
113
113
|
|
114
114
|
# Cancel preapproval payment
|
@@ -137,7 +137,7 @@ class MercadoPago
|
|
137
137
|
filters = build_query(filters)
|
138
138
|
|
139
139
|
uri_prefix = @sandbox ? "/sandbox" : ""
|
140
|
-
@rest_client.get(uri_prefix + "/
|
140
|
+
@rest_client.get(uri_prefix + "/v1/payments/search?" + filters + "&access_token=" + access_token)
|
141
141
|
end
|
142
142
|
|
143
143
|
# Create a checkout preference
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
MERCADO_PAGO_VERSION = '0.3.
|
1
|
+
MERCADO_PAGO_VERSION = '0.3.5' unless defined?(MERCADO_PAGO_VERSION)
|
data/travis_Gemfile
ADDED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercadopago-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maticompiano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: MercadoPago Ruby SDK
|
@@ -59,7 +59,8 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
63
|
+
- ".travis.yml"
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|
65
66
|
- README.md
|
@@ -79,6 +80,7 @@ files:
|
|
79
80
|
- mercadopago-sdk-0.3.3.gem
|
80
81
|
- mercadopago.gemspec
|
81
82
|
- tests/tests.rb
|
83
|
+
- travis_Gemfile
|
82
84
|
homepage: http://github.com/mercadopago/sdk-ruby
|
83
85
|
licenses: []
|
84
86
|
metadata: {}
|
@@ -88,17 +90,17 @@ require_paths:
|
|
88
90
|
- lib
|
89
91
|
required_ruby_version: !ruby/object:Gem::Requirement
|
90
92
|
requirements:
|
91
|
-
- -
|
93
|
+
- - ">="
|
92
94
|
- !ruby/object:Gem::Version
|
93
95
|
version: '0'
|
94
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
97
|
requirements:
|
96
|
-
- -
|
98
|
+
- - ">="
|
97
99
|
- !ruby/object:Gem::Version
|
98
100
|
version: '0'
|
99
101
|
requirements: []
|
100
102
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.7.7
|
102
104
|
signing_key:
|
103
105
|
specification_version: 4
|
104
106
|
summary: MercadoPago Ruby SDK
|