Merge branch 'rubocop'
And use settings from sgx-jmp
Allow activating an account via credit card on web
This is designed to work with current jmp-register flows pending new-register
existing. Link a user to https://pay.jmp.chat/<jid>/activate?return_to=... and
they can choose to buy 5 months of service in either USD or CAD on a supported
credit card. The card will be vaulted onto their newly-minted customer_id and
the amount immediately billed. No account balance will be set or used, but
rather a plan_log row created starting now and expiring in 5 months.
Cronjob to check pending BTC transactions
When they become confirmed, insert them into the transactions table.
We can never double-insert because of the PRIMARY KEY on transaction_id, so the
script is always safe to run even if something ends up in redis twice.
Endpoint that pushes all unknown transactions into Redis
The intent is to use `electrum notify <address> <app>/electrum_noify?address=&customer_id=`
The app asks electrum for all transactions on that address, and then checks
which ones we *don't* already have recorded in the transactions table. These
are pushed into Redis to be picked up by a to-be-written job that will write
them to the transactions table after 3 confirmations.