-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathPKG-INFO
103 lines (84 loc) · 3.68 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Metadata-Version: 1.1
Name: click
Version: 0.1
Summary: Click services
Home-page: click.uz
Author: Click developers
Author-email: info@click.com
License: BSD License
Description: =====
CLICK
=====
Click is a simple Django application to working with click-api and conduct to Web-based.
Click module has integrated to "django-payments" module as variant.
You can find more information about "django-payments" by https://django-payments.readthedocs.io link.
Detailed documentation is in the https://docs.click.uz url.
Quick start
-----------
1. Installing
$ pip install django-payments
$ pip install click.tgz
2. Add "payments" and "click" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'payments',
'click',
...
]
3. Add the variables to your settings.py like this::
PAYMENT_HOST = '<your_ip_address>:<your_port>'
PAYMENT_USES_SSL = False # set the True value if you are using the SSL
PAYMENT_MODEL = '<your_payment_model>' # payment model format like this :: '<app_name>.<model_name>'
# add "click" to your variants
PAYMENT_VARIANTS = {
...
'click' : ('click.ClickProvider', {
'merchant_id' : 1111,
'merchant_service_id' : 11111,
'merchant_user_id' : 11111,
'secret_key' : 'AAAAAA'
})
...
}
4. Include the click and payments URLconf in your project urls.py like this::
path('payments/', include('payments.urls')),
path('payments/', include('click.urls'))
5. Create your payment model to models.py like this::
from payments.models import BasePayment
class Payment(BasePayment):
pass
6. Add the model to your admin.py like this::
from django.contrib import admin
# Register your models here.
from .models import Payment
class PaymentAdmin(admin.ModelAdmin):
pass
admin.site.register(Payment, PaymentAdmin)
7. Run `python manage.py migrate` to create the payment and your another models.
8. Start the development server and visit http://127.0.0.1:8000/admin/
to create a payment.
9. Click payment services:
service urls as pattern : payments/process/click/service/<service_type>
service types:
1) create_invoice
2) check_invoice
3) create_card_token
4) verify_card_token
5) payment_with_token
5) delete_card_token
10. The "prepare" and "complate" urls as pattern:
prepare : payments/process/click/prepare
complate : payments/process/click/complate
11. Example code at "example/" directory.
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.5
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content