meo_wallet 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meo_wallet/client.rb +5 -2
- data/lib/meo_wallet/version.rb +1 -1
- data/lib/meo_wallet.rb +2 -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: 2e65f8d828030870ace9d213a1ddb1d0b0bc5a5b
|
4
|
+
data.tar.gz: b5bce4857bd0e03e783d717a4fd20b0081b344de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4870900377f0a0cb331514b41634b804ccd5e94a3dc20bac1f06ed45b696600fdcdc92fa3df8b5bb2e9025d887fa76f08a56e2e0849a47818c853ab6bfe39d
|
7
|
+
data.tar.gz: c6509f74d72680247b34b0b7e7a87094acdb9af1309e679d1493baf77e54748a4583ba15ea92bd921a3d7cf057ff04c592444de668e029588bf8609bb5f97f6a
|
data/lib/meo_wallet/client.rb
CHANGED
@@ -1,15 +1,18 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
|
1
3
|
module MeoWallet
|
2
4
|
class Client
|
3
5
|
include HTTParty
|
6
|
+
|
4
7
|
base_uri 'https://services.wallet.codebits.eu'
|
5
8
|
headers 'Content-Type' => 'application/json'
|
6
9
|
|
7
10
|
def initialize(secret)
|
8
|
-
self.headers 'Authorization' => "WalletPT #{secret}"
|
11
|
+
self.class.headers 'Authorization' => "WalletPT #{secret}"
|
9
12
|
end
|
10
13
|
|
11
14
|
def create_checkout(payment_data)
|
12
|
-
self.post '/api/v2/checkout', body: payment_data.to_json
|
15
|
+
self.class.post '/api/v2/checkout', body: payment_data.to_json
|
13
16
|
end
|
14
17
|
end
|
15
18
|
end
|
data/lib/meo_wallet/version.rb
CHANGED
data/lib/meo_wallet.rb
CHANGED