Integrating a payment gateway with Django-Oscar?

后端 未结 2 2039
南方客
南方客 2021-02-04 06:32

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 giv

2条回答
  •  孤独总比滥情好
    2021-02-04 07:22

    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.

提交回复
热议问题