Module: OffsitePayments::Integrations::MollieMistercash
- Includes:
- Mollie
- Defined in:
- lib/offsite_payments/integrations/mollie_mistercash.rb
Defined Under Namespace
Classes: Helper, Notification, Return
Constant Summary
collapse
- RedirectError =
Class.new(ActiveUtils::ActiveUtilsError)
Class Method Summary
collapse
Class Method Details
.check_payment_status(token, payment_id) ⇒ Object
24
25
26
|
# File 'lib/offsite_payments/integrations/mollie_mistercash.rb', line 24
def self.check_payment_status(token, payment_id)
API.new(token).get_request("payments/#{payment_id}")
end
|
.create_payment(token, params) ⇒ Object
20
21
22
|
# File 'lib/offsite_payments/integrations/mollie_mistercash.rb', line 20
def self.create_payment(token, params)
API.new(token).post_request('payments', params)
end
|
.live? ⇒ Boolean
16
17
18
|
# File 'lib/offsite_payments/integrations/mollie_mistercash.rb', line 16
def self.live?
OffsitePayments.mode == :production
end
|
.notification(post, options = {}) ⇒ Object
8
9
10
|
# File 'lib/offsite_payments/integrations/mollie_mistercash.rb', line 8
def self.notification(post, options = {})
Notification.new(post, options)
end
|
.requires_redirect_param? ⇒ Boolean
28
29
30
|
# File 'lib/offsite_payments/integrations/mollie_mistercash.rb', line 28
def self.requires_redirect_param?
false
end
|
.return(post, options = {}) ⇒ Object
12
13
14
|
# File 'lib/offsite_payments/integrations/mollie_mistercash.rb', line 12
def self.return(post, options = {})
Return.new(post, options)
end
|