Class: PagSeguro::CreditCardTransactionRequest

Inherits:
TransactionRequest show all
Defined in:
lib/pagseguro/credit_card_transaction_request.rb

Instance Attribute Summary collapse

Attributes inherited from TransactionRequest

#code, #created_at, #currency, #discount_amount, #errors, #extra_amount, #extra_params, #gross_amount, #installment_count, #net_amount, #notification_url, #payment_link, #payment_mode, #primary_receiver, #receivers, #reference, #sender, #shipping, #status, #type_id, #updated_at

Attributes included from Extensions::Credentiable

#credentials

Instance Method Summary collapse

Methods inherited from TransactionRequest

#create, #items, #update_attributes

Methods included from Extensions::EnsureType

#ensure_type

Methods included from Extensions::MassAssignment

#initialize

Instance Attribute Details

#billing_addressObject

Get billing address info.



14
15
16
# File 'lib/pagseguro/credit_card_transaction_request.rb', line 14

def billing_address
  @billing_address
end

#credit_card_tokenObject

Set credit card token. Required for credit card payment method.



5
6
7
# File 'lib/pagseguro/credit_card_transaction_request.rb', line 5

def credit_card_token
  @credit_card_token
end

#holderObject

Get credit card holder info.



11
12
13
# File 'lib/pagseguro/credit_card_transaction_request.rb', line 11

def holder
  @holder
end

#installmentObject

Get installment info.



8
9
10
# File 'lib/pagseguro/credit_card_transaction_request.rb', line 8

def installment
  @installment
end

Instance Method Details

#payment_methodObject

Get the payment_method.



17
18
19
# File 'lib/pagseguro/credit_card_transaction_request.rb', line 17

def payment_method
  "creditCard"
end