Django nestpay odeme sistemine inteqraciya
Project description
nestpay odeme sistemi ucun modul
from payment.nestpay import NestPay
from payment.utils import *
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
def payment(request):
......
temp = NestPay(
clientId = '', # bank terefinden verilir
amount = '', # mebleg : 1.00 azn
oid = '', # order id unikdi
okUrl = '', # callback url success den sonra bura post gonderilir
failUrl = '', # error url
rnd = microtime(),
storekey = '2', # bank terefinden verilir
storetype = '', # bank terefinden verilir
lang = 'en', # hansi dilde odeme sehvesine redirec edecek
islemtipi = 'Auth', # default
hash = '', # hash edirik
refreshtime = '5', # sehveler arasinda redirect timeout u
instalment='', # taksid
currency = '944', # Azerbaycan manatinin kodu
post_url = 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate' # odeme sehivesi
)
data = temp.bank_data()
return HttpResponse(data)
# callback yuxarda paymentde qeyd edeceyimiz okUrl di ve o url e bank post gonderir
@csrf_exempt
def callback(request):
........
if request.method == 'POST':
data = request.POST
data['storekey'] = '' #bank terefinden verilir
result = Nestpay.data_result(**data)
return HttpResponse(result)
else:
return HttpResponse("Not found")
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
nestpay-0.0.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for nestpay-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a65b9e62a622ee01a028c54969053510ee94a1bc130e429fcc0c93670566a77 |
|
MD5 | fcd64ddbedf0649c4adb21848553fcf2 |
|
BLAKE2b-256 | 13b55329ed42fdcd0bef92e5f303870d624df133d62a8fd6a29d1d0b2cfa8440 |