Django nestpay odeme sistemine inteqraciya
Project description
nestpay odeme sistemi ucun modul
from payment.nestpay import NestPay
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':
result = Nestpay.data_result(request.POST)
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.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for nestpay-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bbc539b703f86e1068c6a2dacf9b9dc644765a4b0856f52a6f79323ca951657 |
|
MD5 | f682f27fed6f0d27d282751dcfe62301 |
|
BLAKE2b-256 | e7aa1f5712366207675f55a30da24ec67e8521271ca01827b776ad0307c2311c |