Class: GlobalCollect::RequestModels::InsertOrderWithPayment::HostedCreditCardOnlinePayment
- Inherits:
-
CreditCardOnlinePayment
- Object
- Base
- Payment
- CreditCardOnlinePayment
- GlobalCollect::RequestModels::InsertOrderWithPayment::HostedCreditCardOnlinePayment
- Defined in:
- lib/global_collect/request_models/insert_order_with_payment/hosted_credit_card_online_payment.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(attributes) ⇒ HostedCreditCardOnlinePayment
constructor
A new instance of HostedCreditCardOnlinePayment.
- #suggested_response_mixins ⇒ Object
Methods inherited from Base
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
#fields ⇒ Object
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_mixins ⇒ Object
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 |