Class: Alfabank::Api::PaymentOrderBinding

Inherits:
Base
  • Object
show all
Defined in:
lib/alfabank/api/payment_order_binding.rb

Constant Summary collapse

TEST_URL =
'https://web.rbsuat.com/ab/rest/paymentOrderBinding.do'
URL =
"https://engine.paymentgate.ru/payment/rest/paymentOrderBinding.do"

Instance Attribute Summary

Attributes inherited from Base

#payment, #use_binding

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Alfabank::Api::Base

Instance Method Details

#process(binding_id) ⇒ Object



6
7
8
9
10
11
# File 'lib/alfabank/api/payment_order_binding.rb', line 6

def process(binding_id)
  fail 'alfa_order_id is nil' if payment.alfa_order_id.nil?
  @binding_id = binding_id

  process_response(make_request.parsed_response)
end