-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development (v1.9) #20
base: main
Are you sure you want to change the base?
Conversation
Hit a roadblock with this update. Will need to change how Payments are processed and stored.
|
Decided to rewrite Stripe and PayPal module, to make it easier to implement the shopping cart. |
Should hopefully finish the Stripe module rewrite within the next couple of days. |
Still working on this, adding automation for purchases and testing for issues and bugs. |
Pull request is still in development and needs working on |
Updated Pull Description |
I will be making 2FA methods modular too |
Sorry about the lack of updates, I have assignments due in the next couple of weeks so I will release an update after they are all over. |
Automation Handling NotificationI will be removing the automation modules and replacing them with product modules. The new modules will make it easier to manage products and will implement events such as If you have created any automation scripts, please update them before downloading the latest LoonaBilling version. |
Basic Product ModuleCurrently the only data passed is the User ID but I will probably add more info that will be passed # imports
module = Blueprint('DiscordProduct', __name__)
module.hasAdminPage = False
module.moduleDescription = 'Discord Product'
module.version = '1.0'
module.config = {}
# Product Settings
module.ProductSettingsPage = False
module.basicName = 'discord'
module.fontawesome = 'fa-brands fa-discord'
# Extra
module.sendURL = 'http://localhost/dc/callback'
def on_create(*data): # On Product Payment
print('On Create')
data = data[0]
print('UID', data)
try:
x = requests.post(module.sendURL, data='Success!')
print(x.text)
return True
except Exception as e:
print('ERR', e)
def on_delete(*data): # On Product Deletion
print('On Delete')
x = requests.post(module.sendURL, data='Deleted!')
print(x.text)
return True
def on_notrenewed(*data): # On Product not renewed
print('On Not Renewed')
x = requests.post(module.sendURL, data='Not renewed!')
print(x.text)
return True
def on_renew(*data): # On product renewed
print('On Renew')
x = requests.post(module.sendURL, data='Renewed!')
print(x.text)
return True
def on_paymentfailed(*data): # On Payment Failed
print('On Payment Failed')
x = requests.post(module.sendURL, data='Payment Failed!')
print(x.text)
return True
@module.route('/dc/callback', methods=['GET', 'POST'])
def cb():
return 'RETURN: yay!' |
Development v1.9
Some big things to note:
Version 2.0 should hopefully be the first production environment release