Class: OffsitePayments::Integrations::Mollie::Helper

Inherits:
Helper
  • Object
show all
Defined in:
lib/offsite_payments/integrations/mollie.rb

Instance Attribute Summary

Attributes inherited from Helper

#fields

Instance Method Summary collapse

Methods inherited from Helper

#add_field, #add_fields, #add_raw_html_field, #billing_address, #form_fields, inherited, #initialize, mapping, #raw_html_fields, #shipping_address, #test?

Methods included from MoneyCompatibility

#to_cents

Constructor Details

This class inherits a constructor from OffsitePayments::Helper

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OffsitePayments::Helper

Instance Method Details

#credential_based_urlObject



34
35
36
37
38
39
40
41
42
# File 'lib/offsite_payments/integrations/mollie.rb', line 34

def credential_based_url
  response = request_redirect
  @transaction_id = response['id']

  uri = URI.parse(response['links']['paymentUrl'])
  set_form_fields_for_redirect(uri)
  uri.query = ''
  uri.to_s.sub(/\?\z/, '')
end

#form_methodObject



44
45
46
# File 'lib/offsite_payments/integrations/mollie.rb', line 44

def form_method
  "GET"
end