Class: GlobalCollect::RequestModels::InsertOrderWithPayment::HostedCreditCardOnlinePayment

Inherits:
CreditCardOnlinePayment show all
Defined in:
lib/global_collect/request_models/insert_order_with_payment/hosted_credit_card_online_payment.rb

Direct Known Subclasses

RecurringHostedCreditCardOnlinePayment

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #validate

Constructor Details

#initialize(attributes) ⇒ HostedCreditCardOnlinePayment

Returns a new instance of HostedCreditCardOnlinePayment.



3
4
5
6
# File 'lib/global_collect/request_models/insert_order_with_payment/hosted_credit_card_online_payment.rb', line 3

def initialize(attributes)
  super(attributes)
  @attributes["HOSTEDINDICATOR"] = "1"
end

Instance Method Details

#fieldsObject



12
13
14
15
16
17
# File 'lib/global_collect/request_models/insert_order_with_payment/hosted_credit_card_online_payment.rb', line 12

def fields
  super.merge({
    "EXPIRYDATE"              => ['N4',   'O'],
    "CREDITCARDNUMBER"        => ['N19',  'O']
  })
end

#suggested_response_mixinsObject



8
9
10
# File 'lib/global_collect/request_models/insert_order_with_payment/hosted_credit_card_online_payment.rb', line 8

def suggested_response_mixins
  super + [GlobalCollect::Responses::InsertOrderWithPayment::HostedMerchantLinkPaymentResponseMethods]
end