Class: GlobalCollect::RequestModels::DoPayment::Payment

Inherits:
Base
  • Object
show all
Defined in:
lib/global_collect/request_models/do_payment/payment.rb

Direct Known Subclasses

RecurringPayment

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #initialize, #validate

Constructor Details

This class inherits a constructor from GlobalCollect::RequestModels::Base

Instance Method Details

#fieldsObject

WDL §5.13.1 specifies the full list of possible fields



10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/global_collect/request_models/do_payment/payment.rb', line 10

def fields
  super.merge({
    "MERCHANTREFERENCE" => ["AN30" , "R"],
    "ORDERID"           => ["N10"  , "R"],
    "EFFORTID"          => ["N5"   , "O"],
    "PAYMENTPRODUCTID"  => ["N5"   , "R"],
    "AMOUNT"            => ["N12"  , "O"],
    "AMOUNTSIGN"        => ["AN1"  , "O"],
    "CURRENCYCODE"      => ["AN3"  , "R"],
    "HOSTEDINDICATOR"   => ["N1"   , "O"],
    "RETURNURL"         => ["AN512", "O"]
  })
end

#suggested_response_mixinsObject



3
4
5
6
7
8
# File 'lib/global_collect/request_models/do_payment/payment.rb', line 3

def suggested_response_mixins
  [
    GlobalCollect::Responses::SuccessRow,
    GlobalCollect::Responses::DoPayment::ResponseMethods
  ]
end