This module allows you to integrate payment acceptance using "CLICK"
payment system into Python Django
web applications.
Click-API module is integrated to django-payments
module as payment provider.
Detailed documentation is available here https://docs.click.uz.
$ pip install django-payments
$ pip install click.tar.gz
INSTALLED_APPS = [
...
'payments',
'click',
...
]
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'
})
...
}
path('payments/', include('payments.urls'))
path('payments/', include('click.urls'))
from payments.models import BasePayment
class Payment(BasePayment):
pass
from django.contrib import admin
from .models import Payment
class PaymentAdmin(admin.ModelAdmin):
pass
admin.site.register(Payment, PaymentAdmin)
1) create_invoice
2) check_invoice
3) create_card_token
4) verify_card_token
5) payment_with_token
5) delete_card_token
prepare : payments/process/click/prepare
complate : payments/process/click/complete