Uzcloud Billing
Project description
Uzcloud Billing is a Django app to provide account with Uzcloud Billing account number.
Quick start
1.Add “rest_framework” and “uzcloud_billing” to your INSTALLED_APPS :
INSTALLED_APPS = [
...
'rest_framework',
'uzcloud_billing',
]
2.Include the uzcloud_billing urls in your project urls.py like this :
path('api/billing/', include('uzcloud_billing.urls')),
3.Add Following credentials to settings.py :
UZCLOUD_BILLING = {
"AUTH_URL": "",
"BASE_URL": "",
"CLIENT_ID": "",
"CLIENT_SECRET": "",
"WEBHOOK_USERNAME": "",
"WEBHOOK_PASSWORD": "",
"IDENT_RESPONSE_SERIALIZER": "",
}
4.Run python manage.py migrate to create the uzcloud_billing models. 5.You may create receiver for balance filled event.Signal for your receiver must be uzcloud_billing.signals.balance_filled_signal. Receiver function get data as argument and data value is {“AccountNumber”:””,”paymentType”:””,”Amount”:””,”Balance”:””}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uzcloud-billing-0.1.5.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for uzcloud_billing-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbfcf353a98b69419bce247bd530e9c105c2028412cbb8c6203a28c4d6aa0ef |
|
MD5 | 35609af5da6ed94144a76bb1e03e2f42 |
|
BLAKE2b-256 | 971775f2d0ce078b2ca6ed8dbebc4840c99f83bd9b9c31b6f248801bbfa374ba |