activate.rb

 1form!
 2title "Activate JMP"
 3
 4instructions <<~I
 5	You've selected #{@tel} as your JMP number.
 6	To activate your account, you can either deposit $#{'%.2f' % (CONFIG[:activation_amount] + @tel.price)} to your balance or enter your referral code if you have one.
 7	(If you'd like to pay in another cryptocurrency, currently we recommend using a service like simpleswap.io, morphtoken.com, changenow.io, or godex.io.)
 8I
 9
10field(
11	var: "activation_method",
12	type: "list-single",
13	label: "Activate using",
14	required: true,
15	options: [
16		{
17			value: "credit_card",
18			label: "Credit Card"
19		},
20		{
21			value: "bitcoin",
22			label: "Bitcoin"
23		},
24		{
25			value: "bch",
26			label: "Bitcoin Cash"
27		},
28		{
29			value: "code",
30			label: "Referral Code"
31		},
32		{
33			value: "mail",
34			label: "Mail or Interac e-Transfer"
35		}
36	]
37)
38
39instance_eval File.read("#{__dir__}/plan_name.rb")
40
41field(
42	var: "code",
43	type: "text-single",
44	label: "Optional referral code"
45)