Module: LemonWay::Helpers::Forms

Defined in:
lib/lemon_way/helpers/forms.rb

Constant Summary collapse

DIRECTKIT_FORM_URL =
'https://webkit.lemonway.fr/mb/{company_name}/{env}/payment-page/?fId={id}'.freeze

Instance Method Summary collapse

Instance Method Details

#lemon_way_form_url(form_id) ⇒ Object



9
10
11
12
13
14
# File 'lib/lemon_way/helpers/forms.rb', line 9

def lemon_way_form_url(form_id)
  DIRECTKIT_FORM_URL
    .sub('{company_name}', LemonWay.client.company)
    .sub('{env}', LemonWay.client.env)
    .sub('{id}', form_id)
end