Integrating a payment gateway with Django-Oscar?
Asked Answered
I

2

15

I want to integrate a payment gateway with oscar. I have integrated oscar-paypal it works fine. Should I follow oscar-paypal and try to emulate it ? This document doesn't gives the starting information but not exactly ?

I need this. To create order, change basket status, make payments, send email, and many other steps that oscar-paypal is doing.

Interment answered 20/10, 2015 at 13:55 Comment(2)
what payment gateway you want to integrateAguilar
Ecommerce on Open edX uses Oscar too. Take a look at their payment processor implementation: github.com/edx/ecommerce/tree/master/ecommerce/extensions/… you might benefit from it.Mani
N
3

I think you can use payu which is also very easyily available and can be customized. pip install git+https://github.com/SalahAdDin/django-oscar-payu#egg=payu this would clone the payu application which has similar implementation as oscar-paypal. then edit the views.py in the nonseamless navigate to through the code and change the self.sessions.['currency'] to the currency which u want to use but the default currency it works with is INR. Then your payment_detail.html just replicate what you have as in paypal and change the paypal url to payu. Just switch paypal to payu. That is all.

credit to https://github.com/SalahAdDin/

Natalia answered 27/3, 2018 at 12:25 Comment(0)
E
0

Following the steps of Oscar Paypal is a pretty good idea. It's a pretty well written project. There are facades written that abstract the details of communicating with the Paypal Express and PayFlow APIs. The facade functions are then called from the views.py in each package, which is where the real integration with Oscar begins.

The Paypal Express implementation for example is integrated with Oscar pretty much by subclassing the PaymentDetailsView class and calling the necessary functions implemented in the paypal.express.facade package. There is also a ShippingOptionsView that provides some linkage with Paypal shipping.

Emissivity answered 16/11, 2016 at 1:27 Comment(1)
how do I integrate a payment gateway like paystack. here is the link to django-paystack. github.com/gbozee/django-paystackNatalia

© 2022 - 2024 — McMap. All rights reserved.