diff --git a/forms/alt_top_up/bch.rb b/forms/alt_top_up/bch.rb new file mode 100644 index 0000000000000000000000000000000000000000..c72ab98f571d4ef239f671b2d1d2fafee6a3ae6d --- /dev/null +++ b/forms/alt_top_up/bch.rb @@ -0,0 +1,5 @@ +result! +title "New Bitcoin Cash Address" +instructions "Your new address has been created" + +render "alt_top_up/bch_addresses" diff --git a/forms/alt_top_up/bch_addresses.rb b/forms/alt_top_up/bch_addresses.rb new file mode 100644 index 0000000000000000000000000000000000000000..110fb5f11c7562ffa3847583ecb41e9dd6ba7d1d --- /dev/null +++ b/forms/alt_top_up/bch_addresses.rb @@ -0,0 +1,15 @@ +DESCRIPTION = + "You can make a Bitcoin Cash payment of any amount to any " \ + "of these addresses and it will be credited to your " \ + "account at the Canadian Bitcoins exchange rate within 5 " \ + "minutes of your transaction reaching 3 confirmations.".freeze + +if @bch_addresses && !@bch_addresses.empty? + field( + var: "bch_addresses", + type: "fixed", + label: "Bitcoin Cash Addresses", + description: DESCRIPTION, + value: @bch_addresses + ) +end