user upgrades: add upgrade code system.
Add a system for upgrading accounts using upgrade codes. Users purchase an upgrade code off-site then redeem it on-site to upgrade their account to Gold. Upgrade codes are randomly pre-generated and are one time use only. Codes have enough randomness that guessing a code is infeasible.
This commit is contained in:
@@ -392,6 +392,14 @@ module Danbooru
|
||||
true
|
||||
end
|
||||
|
||||
# The URL of the Shopify checkout page where account upgrades are sold.
|
||||
def shopify_checkout_url
|
||||
end
|
||||
|
||||
# The secret used to verify webhooks from Shopify. Get it from the https://xxx.myshopify.com/admin/settings/notifications page.
|
||||
def shopify_webhook_secret
|
||||
end
|
||||
|
||||
def stripe_secret_key
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user