cryptomus 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptomus/client.rb +8 -1
- data/lib/cryptomus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 559fbf0dade19be29d6d13f215dba7950417dd1ae662c0ec423e7ae825e7c7b0
|
4
|
+
data.tar.gz: 7e8660488af6dc921cc3ddb440c4a94124fa049d222e57b98cd639336874ed03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36c76acdbe5b1f3e8a2410a53a4e246911f9fbfc85983b3bc5a1019023bcaba6572e3ef87067cf2da8af94b3efe895d2c00b3717a6111c2e7c602dbd2afef89b
|
7
|
+
data.tar.gz: 9055b88a192759c97a9529c4319c6cdb0db6a150a9b969ddee6fd46c54fcf8e2edbe85dbbe457fb93c86b62b3cd921f4f5d572519ee8ce49b167f76ea4f500f2
|
data/lib/cryptomus/client.rb
CHANGED
@@ -42,7 +42,14 @@ module Cryptomus
|
|
42
42
|
# @raise [Cryptomus::Errors::ApiError]
|
43
43
|
def payment(uuid: nil, order_id: nil)
|
44
44
|
attributes = { uuid:, order_id: }.compact
|
45
|
-
connection.
|
45
|
+
connection.post('/v1/payment/info', body: attributes)
|
46
|
+
end
|
47
|
+
|
48
|
+
# https://doc.cryptomus.com/payments/list-of-services
|
49
|
+
# @return [Hash]
|
50
|
+
# @raise [Cryptomus::Errors::ApiError]
|
51
|
+
def list_services
|
52
|
+
connection.post('/v1/payment/services', body: {})
|
46
53
|
end
|
47
54
|
|
48
55
|
# https://doc.cryptomus.com/payments/creating-static
|
data/lib/cryptomus/version.rb
CHANGED