将支付网关与Django

将支付网关与Django

本文介绍了将支付网关与Django-Oscar集成在一起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将支付网关与oscar集成在一起。我已经集成了,效果很好。我应该效仿奥斯卡贝宝并尝试模仿它吗?
没有提供起始信息,但不完全是?

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.com/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+https://github.com/SalahAdDin/django-oscar-payu#egg=payuthis 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.

贷方

这篇关于将支付网关与Django-Oscar集成在一起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 02:55