我想将支付网关与oscar集成在一起。我已经集成了 oscar-paypal ,效果很好。我应该效仿奥斯卡贝宝并尝试模仿它吗? 该文档没有提供起始信息,但不完全是?
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 ?
我需要这个。要创建订单,更改购物篮状态,付款,发送电子邮件以及oscar-paypal正在执行的其他许多步骤。
I need this. To create order, change basket status, make payments, send email, and many other steps that oscar-paypal is doing.
推荐答案我认为您可以使用payu,它也很容易获得并且可以自定义。 pip install git + https://github/SalahAdDin/django-oscar-payu#egg=payu 这将克隆payu应用程序其实现方式与oscar-paypal类似。然后在非无缝导航中编辑views.py,以遍历代码并将 self.sessions。['currency'] 更改为您要使用的货币,但使用默认货币它使用的货币是INR。然后,您的payment_detail.html只需复制您在贝宝中的内容,然后将贝宝网址更改为贝宝。只需将paypal切换到payu。就这些。
I think you can use payu which is also very easyily available and can be customized. pip install git+github/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.
贷方 github/SalahAdDin/
更多推荐
将支付网关与Django
发布评论