Module: RubyPsigate::TransactionMethods

Included in:
Gateway
Defined in:
lib/ruby_psigate/transaction_methods.rb

Constant Summary collapse

TRANSACTION_TEST_URL =

URL for test environment

'https://dev.psigate.com:7989/Messenger/XMLMessenger'

Instance Method Summary collapse

Instance Method Details

#amountObject

URL for live environment is not specified It must be obtained from Psigate’s tech support and be specified



11
12
13
# File 'lib/ruby_psigate/transaction_methods.rb', line 11

def amount
  @amount
end

#amount=(x) ⇒ Object

Raises:



15
16
17
18
# File 'lib/ruby_psigate/transaction_methods.rb', line 15

def amount=(x)
  raise InvalidAmount if x.to_f < 0
  @amount = x
end