将支付网关与Django

编程入门 行业动态 更新时间:2024-10-07 22:20:35
本文介绍了将支付网关与Django-Oscar集成在一起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想将支付网关与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

本文发布于:2023-11-23 22:08:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622990.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网关   Django

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!