pay_without_code.rb
1form!
2
3title @title
4
5instructions @instructions
6
7field(
8 var: "activation_method",
9 type: "list-single",
10 label: "Activate using",
11 required: true,
12 options: [
13 {
14 value: "credit_card",
15 label: "Credit Card"
16 },
17 {
18 value: "bitcoin",
19 label: "Bitcoin"
20 },
21 {
22 value: "bch",
23 label: "Bitcoin Cash"
24 }
25 ]
26)
27
28instance_eval File.read("#{__dir__}/plan_name.rb") if @currency_required