lib/cryptomus/client.rb in cryptomus-0.1.1 vs lib/cryptomus/client.rb in cryptomus-0.2.0
- old
+ new
@@ -40,10 +40,17 @@
# @param order_id [String,nil] uuid or order_id must be passed.
# @return [Hash]
# @raise [Cryptomus::Errors::ApiError]
def payment(uuid: nil, order_id: nil)
attributes = { uuid:, order_id: }.compact
- connection.get('/v1/payment/info', body: attributes)
+ connection.post('/v1/payment/info', body: attributes)
+ end
+
+ # https://doc.cryptomus.com/payments/list-of-services
+ # @return [Hash]
+ # @raise [Cryptomus::Errors::ApiError]
+ def list_services
+ connection.post('/v1/payment/services', body: {})
end
# https://doc.cryptomus.com/payments/creating-static
# @param attributes [Hash]
# @option attributes [String] :order_id required