mollie-api-ruby 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.mdown +9 -7
- data/examples/1-new-payment.rb +1 -1
- data/examples/2-webhook-verification.rb +1 -1
- data/examples/4-ideal-payment.rb +1 -1
- data/examples/5-payments-history.rb +1 -1
- data/examples/6-list-activated-methods.rb +1 -1
- data/examples/7-refund-payment.rb +2 -2
- data/lib/Mollie/API/Client.rb +1 -1
- data/lib/Mollie/API/Object/Method.rb +2 -0
- data/lib/Mollie/API/Object/Payment.rb +2 -2
- data/mollie.gemspec +2 -1
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ec284eeb3ad861560f79224359db2b81d358c71
|
4
|
+
data.tar.gz: 8189a32dec6484191ed3e6e18c266af8f8774300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 083c8066728ea429cb3c9556b9eecb881a9bcc1103dde77b95abb15d20ab99c9d99630c4a3fe7e82b733216283a7a1f4804f97de8289b1642664d40d49a4e309
|
7
|
+
data.tar.gz: 056a9182d27078ff5830d5f3254ee3ff2a57d66de09c38e13c804a8cf636c1ec3fd4967123c265bc9a2e03483ee1a73f056781912a74d4a502ac5d91fc38e1ef
|
data/README.mdown
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# Mollie API client for Ruby #
|
4
4
|
|
5
|
-
Accepting [iDEAL](https://www.mollie.nl/
|
5
|
+
Accepting [iDEAL](https://www.mollie.com/nl/ideal), [Mister Cash](https://www.mollie.com/nl/mistercash), [Creditcard](https://www.mollie.com/nl/creditcard), [PayPal](https://www.mollie.com/nl/paypal), [Bank transfer](https://www.mollie.com/nl/banktransfer), [Bitcoin](https://www.mollie.com/nl/bitcoin), [SOFORT Banking](https://www.mollie.com/nl/sofort) and [paysafecard](https://www.mollie.com/nl/paysafecard) online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website.
|
6
6
|
|
7
7
|
## Requirements ##
|
8
8
|
To use the Mollie API client, the following things are required:
|
@@ -94,11 +94,13 @@ Copyright (c) 2014, Mollie B.V.
|
|
94
94
|
## Support ##
|
95
95
|
Contact: [www.mollie.nl](http://www.mollie.nl) — info@mollie.nl — +31 20-612 88 55
|
96
96
|
|
97
|
-
+ [More information about iDEAL via Mollie](https://www.mollie.nl/
|
98
|
-
+ [More information about Creditcard via Mollie](https://www.mollie.nl/
|
99
|
-
+ [More information about Mister Cash via Mollie](https://www.mollie.nl/
|
100
|
-
+ [More information about Bank transfer via Mollie](https://www.mollie.nl/
|
101
|
-
+ [More information about PayPal via Mollie](https://www.mollie.nl/
|
102
|
-
+ [More information about
|
97
|
+
+ [More information about iDEAL via Mollie](https://www.mollie.com/nl/ideal)
|
98
|
+
+ [More information about Creditcard via Mollie](https://www.mollie.com/nl/creditcard)
|
99
|
+
+ [More information about Mister Cash via Mollie](https://www.mollie.com/nl/mistercash)
|
100
|
+
+ [More information about Bank transfer via Mollie](https://www.mollie.com/nl/overboeking)
|
101
|
+
+ [More information about PayPal via Mollie](https://www.mollie.com/nl/paypal)
|
102
|
+
+ [More information about Bitcoin via Mollie](https://www.mollie.com/nl/bitcoin)
|
103
|
+
+ [More information about SOFORT Banking via Mollie](https://www.mollie.com/nl/sofort)
|
104
|
+
+ [More information about paysafecard via Mollie](https://www.mollie.com/nl/paysafecard)
|
103
105
|
|
104
106
|
![Powered By Mollie](http://www.mollie.nl/images/badge-betaling-medium.png)
|
data/examples/1-new-payment.rb
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
# See: https://www.mollie.nl/beheer/account/profielen/
|
11
11
|
#
|
12
12
|
mollie = Mollie::API::Client.new
|
13
|
-
mollie.setApiKey "
|
13
|
+
mollie.setApiKey "test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"
|
14
14
|
|
15
15
|
#
|
16
16
|
# Generate a unique order id for this example. It is important to include this unique attribute
|
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
# See: https://www.mollie.nl/beheer/account/profielen/
|
11
11
|
#
|
12
12
|
mollie = Mollie::API::Client.new
|
13
|
-
mollie.setApiKey "
|
13
|
+
mollie.setApiKey "test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"
|
14
14
|
|
15
15
|
#
|
16
16
|
# Retrieve the payment's current state.
|
data/examples/4-ideal-payment.rb
CHANGED
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
# See: https://www.mollie.nl/beheer/account/profielen/
|
11
11
|
#
|
12
12
|
mollie = Mollie::API::Client.new
|
13
|
-
mollie.setApiKey "
|
13
|
+
mollie.setApiKey "test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"
|
14
14
|
|
15
15
|
#
|
16
16
|
# First, let the customer pick the bank in a simple HTML form. This step is actually optional.
|
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
# See: https://www.mollie.nl/beheer/account/profielen/
|
11
11
|
#
|
12
12
|
mollie = Mollie::API::Client.new
|
13
|
-
mollie.setApiKey "
|
13
|
+
mollie.setApiKey "test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"
|
14
14
|
|
15
15
|
#
|
16
16
|
# Get the all payments for this API key ordered by newest.
|
@@ -10,7 +10,7 @@ begin
|
|
10
10
|
# See: https://www.mollie.nl/beheer/account/profielen/
|
11
11
|
#
|
12
12
|
mollie = Mollie::API::Client.new
|
13
|
-
mollie.setApiKey "
|
13
|
+
mollie.setApiKey "test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"
|
14
14
|
|
15
15
|
#
|
16
16
|
# Get the all the activated methods for this API key.
|
@@ -10,12 +10,12 @@ begin
|
|
10
10
|
# See: https://www.mollie.nl/beheer/account/profielen/
|
11
11
|
#
|
12
12
|
mollie = Mollie::API::Client.new
|
13
|
-
mollie.setApiKey "
|
13
|
+
mollie.setApiKey "test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM"
|
14
14
|
|
15
15
|
#
|
16
16
|
# Retrieve the payment you want to refund from the API.
|
17
17
|
#
|
18
|
-
payment = mollie.payments.get "
|
18
|
+
payment = mollie.payments.get "tr_47uEE1su8q"
|
19
19
|
|
20
20
|
#
|
21
21
|
# Refund the payment.
|
data/lib/Mollie/API/Client.rb
CHANGED
data/mollie.gemspec
CHANGED
@@ -6,11 +6,12 @@ spec = Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'mollie-api-ruby'
|
7
7
|
s.version = Mollie::API::Client::CLIENT_VERSION
|
8
8
|
s.summary = 'Official Mollie API Client for Ruby'
|
9
|
-
s.description = 'Accepting iDEAL, Mister Cash, Creditcard, PayPal, and paysafecard online payments without fixed monthly costs or any punishing registration procedures.'
|
9
|
+
s.description = 'Accepting iDEAL, Mister Cash, Creditcard, PayPal, Bank Transfer, Bitcoin, SOFORT Banking and paysafecard online payments without fixed monthly costs or any punishing registration procedures.'
|
10
10
|
s.authors = ['Rick Wong']
|
11
11
|
s.email = ['info@mollie.nl']
|
12
12
|
s.homepage = 'https://github.com/mollie/mollie-api-ruby'
|
13
13
|
s.license = 'BSD'
|
14
|
+
s.required_ruby_version = '>= 1.9.2'
|
14
15
|
|
15
16
|
s.add_dependency('rest-client', '~> 1.6')
|
16
17
|
s.add_dependency('json', '~> 1.8')
|
metadata
CHANGED
@@ -1,52 +1,53 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mollie-api-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Wong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
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: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.8'
|
34
34
|
type: :runtime
|
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: '1.8'
|
41
|
-
description: Accepting iDEAL, Mister Cash, Creditcard, PayPal,
|
42
|
-
payments without fixed monthly costs or any
|
41
|
+
description: Accepting iDEAL, Mister Cash, Creditcard, PayPal, Bank Transfer, Bitcoin,
|
42
|
+
SOFORT Banking and paysafecard online payments without fixed monthly costs or any
|
43
|
+
punishing registration procedures.
|
43
44
|
email:
|
44
45
|
- info@mollie.nl
|
45
46
|
executables: []
|
46
47
|
extensions: []
|
47
48
|
extra_rdoc_files: []
|
48
49
|
files:
|
49
|
-
- .gitignore
|
50
|
+
- ".gitignore"
|
50
51
|
- LICENSE
|
51
52
|
- README.mdown
|
52
53
|
- examples/1-new-payment.rb
|
@@ -83,12 +84,12 @@ require_paths:
|
|
83
84
|
- lib
|
84
85
|
required_ruby_version: !ruby/object:Gem::Requirement
|
85
86
|
requirements:
|
86
|
-
- -
|
87
|
+
- - ">="
|
87
88
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
89
|
+
version: 1.9.2
|
89
90
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
91
|
requirements:
|
91
|
-
- -
|
92
|
+
- - ">="
|
92
93
|
- !ruby/object:Gem::Version
|
93
94
|
version: '0'
|
94
95
|
requirements: []
|