Module: Giact
- Defined in:
- lib/giact.rb,
lib/giact/client.rb,
lib/giact/payment_reply.rb,
lib/giact/payment_request.rb,
lib/giact/transaction_result.rb,
lib/giact/recurring_check_list.rb,
lib/giact/recurring_payment_request.rb,
lib/giact/cancel_recurring_check_list.rb,
lib/giact/installment_payment_request.rb
Defined Under Namespace
Classes: CancelRecurringCheckList, Client, GiactError, InstallmentPaymentRequest, InvalidRequest, PaymentReply, PaymentRequest, RecurringCheckList, RecurringPaymentRequest, TransactionResult, Unauthorized
Class Method Summary
collapse
Class Method Details
.company_id ⇒ Object
66
67
68
|
# File 'lib/giact.rb', line 66
def self.company_id
@company_id
end
|
.company_id=(company_id) ⇒ Object
70
71
72
|
# File 'lib/giact.rb', line 70
def self.company_id=(company_id)
@company_id = company_id
end
|
config/initializers/giact.rb (for instance)
Giact.configure do |config|
config.company_id = 'your_company_id'
config.username = 'your_api_username'
config.password = 'your_api_password'
end
.password ⇒ Object
82
83
84
|
# File 'lib/giact.rb', line 82
def self.password
@password
end
|
.password=(password) ⇒ Object
86
87
88
|
# File 'lib/giact.rb', line 86
def self.password=(password)
@password = password
end
|
.test_mode=(test_mode) ⇒ Object
94
95
96
|
# File 'lib/giact.rb', line 94
def self.test_mode=(test_mode)
@test_mode = test_mode
end
|
.test_mode? ⇒ Boolean
90
91
92
|
# File 'lib/giact.rb', line 90
def self.test_mode?
@test_mode || false
end
|
.username ⇒ Object
74
75
76
|
# File 'lib/giact.rb', line 74
def self.username
@username
end
|
.username=(username) ⇒ Object
78
79
80
|
# File 'lib/giact.rb', line 78
def self.username=(username)
@username = username
end
|