Class: Alfabank::Client
- Inherits:
-
Object
- Object
- Alfabank::Client
- Defined in:
- lib/alfabank/client.rb
Class Method Summary collapse
- .payment_order_binding(md_order:, binding_id:, ip:, options: {}) ⇒ Object
- .register(order_number:, amount:, return_url:, options: {}) ⇒ Object
- .status(order_id: nil, order_number: nil) ⇒ Object
Class Method Details
.payment_order_binding(md_order:, binding_id:, ip:, options: {}) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/alfabank/client.rb', line 22 def self.payment_order_binding(md_order:, binding_id:, ip:, options: {}) params = .merge( mdOrder: md_order, binding_id: bindingId, ip: ip ) Alfabank::Request.new('paymentOrderBinding.do', params).perform end |
.register(order_number:, amount:, return_url:, options: {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/alfabank/client.rb', line 4 def self.register(order_number:, amount:, return_url:, options: {}) params = .merge( orderNumber: order_number, amount: amount, returnUrl: return_url ) Alfabank::Request.new('register.do', params).perform end |
.status(order_id: nil, order_number: nil) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/alfabank/client.rb', line 14 def self.status(order_id: nil, order_number: nil) raise ArgumentError if order_id.nil? && order_number.nil? params = { orderId: order_id, orderNumber: order_number }.compact Alfabank::Request.new('getOrderStatusExtended.do', params).perform end |