Code Monkey home page Code Monkey logo

e24paymentpipe's Introduction

e24PaymentPipe

Notice of Incompatibility (2019-March)

KNET, the payment network in Kuwait has upgraded their paymenent gateway provider. This kit does not work with the new terminal configuration; an updated kit is under development and you can follow the progress here.

image

image

image

image

This package provides a Python implementation for ACI's e24PaymentPipe Merchant Gateway

Note

For legacy reasons, the name of the module is kept the same as the one from ACI's toolkit. This does not conform to PEP-8 guidelines.

Features

  • Written in Python from scratch (not an existing port)
  • Supports both newer and legacy terminal resource (.cgn) file formats
  • Reasonably well documented
  • Proven code - running in production since 2011
  • Compatible with Python 3.4, Python 2.7

Todo

  • Add support for credit card payments, including refunds.
  • Create comprehensive test suite

e24paymentpipe's People

Contributors

adminq80 avatar burhan avatar pyup-bot avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

e24paymentpipe's Issues

Unable to open resource

integrating benifit payment gate way by using e24PaymentPipe, show error as
Unable to open resource

Using Django

def callKnet(request):
file_path = os.path.join(os.path.split(file)[0], 'resource.cgn')
pgw = Gateway(file_path, ALIAS)
pgw.error_url = devlink + 'paymentgateway/errorknet'
pgw.response_url = devlink + 'paymentgateway/gwKnet/'
pgw.amount = 1.0
amount = 1.0
tid = Transaction.objects.create(total_amount=amount)
gw_info = pgw.get_payment_url()
pgw.trackid = str(tid.id)
payment_token = gw_info['paymentID']
payment_url = gw_info['paymentURL']
Transaction.objects.filter(id=tid.id).update(payment_id=payment_token)
template_url = str(payment_url)+'?PaymentID='+str(payment_token)
return HttpResponseRedirect(template_url)

def gwKnet(request):
pg = request.body
payment_id = request.POST.get('paymentid')
trackid = request.POST.get('trackid')
result = request.POST.get('result')
postdate = request.POST.get('postdate')
tranid = request.POST.get('tranid')
ref = request.POST.get('ref')
auth = request.POST.get('auth')
a= {'payment_id':payment_id,'trackid':trackid,'result':result,'postdate':postdate,'tranid':tranid,'ref':ref,'auth':auth}
return redirect('http://adminhtl.rehlat.ae/paymentgateway/success?payment_id='+str(payment_id))

def success(request):
print 'i am success'
template = get_template('pg_d.html')
context = Context({'message':'Final'})
html = template.render(context)
print 'html',html
return HttpResponse(dumps({'html':str(html),'status':'success'}))

Hi,
In the above code
Step1: I am calling "callKnet" and able to see the KNet page and able to give my input.
Step2: KNet is posting me back to the "gwKnet" I am able to Capture the success response, At last, I am redirecting it to my success URL but KNet I unable to redirect me there.
Please do the needful.

[Errno 8] _ssl.c:507: EOF occurred in violation of protocol

Dear Burhan,

Thanks for your efforts in developing such a wonderful utility in KNET payment processing.

I am a beginner programmer in python and I have implemented this module in my project and it worked properly for few weeks. Suddenly now it is giving this error.

Can you please help me in solving this issue.

Regards,
Huzefa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.