Class: GlobalCollect::RequestModels::InsertOrderWithPayment::Payment

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

Direct Known Subclasses

CreditCardOnlinePayment

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

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

Instance Method Details

#fieldsObject

WDL §5.28.1 TABLE 105 specifies the full list of possible fields



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/global_collect/request_models/insert_order_with_payment/payment.rb', line 4

def fields
  super.merge({
    "PAYMENTPRODUCTID" => ["N5"   , "R"],
    "AMOUNT"           => ["N12"  , "R"],
    "AMOUNTSIGN"       => ["AN1"  , "O"],
    "CURRENCYCODE"     => ["AN3"  , "R"],
    "LANGUAGECODE"     => ["AN2"  , "R"],
    "COUNTRYCODE"      => ["AN2"  , "R"],
    "HOSTEDINDICATOR"  => ["N1"   , "O"],
    "RETURNURL"        => ["AN512", "O"]
  })
end