Method: Payzilla::Gateways::Matrix#check
- Defined in:
- lib/payzilla/gateways/matrix.rb
#check(payment) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/payzilla/gateways/matrix.rb', line 13 def check(payment) begin result = send 'process_payment', :i_service_id => 2, :i_phone => payment.account, :i_pamount => payment.enrolled_amount, :i_pdate => payment.created_at return retval(result['ERROR']['@SQLCODE'], result['PAYMENT_ID']) rescue Errno::ECONNRESET return retval(-1000) end end |