Class: Payanyway::Helpers::SignatureGenerate

Inherits:
Object
  • Object
show all
Defined in:
lib/payanyway/helpers/signature_generator.rb

Constant Summary collapse

BASE_KEYS =
%w(
  MNT_ID
  MNT_TRANSACTION_ID
  MNT_OPERATION_ID
  MNT_AMOUNT
  MNT_CURRENCY_CODE
  MNT_SUBSCRIBER_ID
  MNT_TEST_MODE
)
KEYS =
{
  pay: BASE_KEYS,
  url: BASE_KEYS - [ 'MNT_OPERATION_ID' ],
  check: [ 'MNT_COMMAND' ] + BASE_KEYS,
  check_response:  %w(MNT_RESULT_CODE MNT_ID MNT_TRANSACTION_ID)
}