form!
title "Activate JMP"

instructions <<~I
	You've selected #{@tel} as your JMP number.
	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.
	(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.)

	After payment is complete, your number will be activated for inbound calls and texts. Calling out, or sending a text, will often be restricted until you receive at least one text from a person or port in a number.
I

field(
	var: "activation_method",
	type: "list-single",
	label: "Activate using",
	required: true,
	options: [
		{
			value: "credit_card",
			label: "Credit Card"
		},
		{
			value: "bitcoin",
			label: "Bitcoin"
		},
		{
			value: "bch",
			label: "Bitcoin Cash"
		},
		{
			value: "code",
			label: "Referral Code"
		},
		{
			value: "mail",
			label: "Mail or Interac e-Transfer"
		}
	]
)

instance_eval File.read("#{__dir__}/plan_name.rb")

field(
	var: "code",
	type: "text-single",
	label: "Optional referral code"
)
