问题标签 [django-paypal]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
django - django/commerce/paypal:跟踪用户交易
目前我希望将贝宝支付集成到我的应用程序中,所以我下载django-paypal (dcramer)
了贝宝沙箱进行测试。我尝试了WPP express checkout payment
作为我的主要付款流程,并且付款流程没有问题,工作顺利。
然而,像所有电子商务一样,我知道我应该在我的应用程序中跟踪用户交易/付款。这就是我迷路的地方。我在 中检查了模型表paypal_nvp
,django-paypal
并且没有类似于 Paypal 的 transaction-id 的字段。
如果是这样,我应该如何跟踪用户的付款?我可以使用日期时间 + 用户作为我的交易 ID 的哈希吗?如何将特定交易引用到贝宝交易?
任何django-paypal
在 django 使用过或有过电子商务经验的人,请随时提供宝贵的建议。
django - PDT 的 django-paypal 设置给了我一个错误
我正在使用 django-paypal [1] 的 dcramers 版本。我正在尝试通过我的沙盒业务贝宝帐户将 PDT 与订阅一起使用xpanta_XXX_biz@paypal.com
这是我的views.py [2]:
但是,当我登录到贝宝网站以测试订阅我的服务时(使用我的普通贝宝凭据。由于某种原因,我无法使用我的个人沙盒帐户xpanta_XXX_per@gmail.com
来测试支付系统)我收到此错误:
The link you have used to enter the PayPal system is invalid. Please review the link and try again.
错误底部有一个“返回商家”按钮,可让我返回取消页面(如预期的那样)。
我究竟做错了什么?
PS:添加urls.py
部分:
[1] https://github.com/dcramer/django-paypal
[2] 自述文件(“使用 PayPal 支付标准 PDT”一节)中描述的其他步骤保持不变,完全按照描述完成。
django - Customizing Django-PayPal View
I am using django paypal to allow users to make a payment on my site however i have a few queries.
The way how it is currently working for me is that i have a template called profile.html. When a user clicks the button "Click for more subscription options" he will be redirected to the subscriptions.html template showing a table of the subscriptions and a paypal button. When the button is clicked, the user gets redirected to another template called paypal.html which shows another paypal button derived from django-paypal's forms.py
My question here would be how i can modify the paypal view such that i can do away with the paypal.html and direct the user directly to the actual paypal website when he clicks the paypal button in subscription.html?
I hope my description of the question is clear enough.
in my views.py:
in my profile.html:
in my subscription.html:
in my urls.py:
django - django-paypal PDT 实现无法接收信号
我正在尝试使用带有订阅的 PDT 来实现 django-paypal(来自 git 的 dcramers 版本)。
它工作正常(意味着return_url
请求和回答),但是没有触发信号(放在 models.py 中)。我正在使用以下信号,连接到两个不同的功能。
from paypal.standard.pdt.signals import pdt_successful, pdt_failed
我在浏览访问日志时注意到的是,我确实收到了来自贝宝的 POST 请求,但该请求已被拒绝。
"POST /an-obscure-string/pdt/ HTTP/1.0" 401 401 "-" "-"
我尝试修改/paypal/standard/pdt/views.py
以接受 POST 请求,但仍然收到 401 错误。我认为这就是没有触发信号的原因。
我对此感到很不愉快。任何帮助将不胜感激。
PS:我用的是沙盒账号
编辑这些是我的 PAYPAL POSTBACK 值conf.py
django - django paypal_ipn 表不存在
我正在尝试使用 IPN 实现 django-paypal(dcramer 的版本),虽然我收到了通知,但它的回答是 500 错误。我检查了我的调试日志,我看到了这条消息:
DatabaseError: (1146, "Table 'myproject.paypal_ipn' doesn't exist")
我发现的所有教程都没有提到关于 pypal_ipn 表的任何内容。我也做了一个同步数据库和一个南迁移,但没有创建表。
我究竟做错了什么?
这就是我使用syncdb得到的:
django - django-paypal ipn 没有响应
我正在使用这个应用程序在我的应用程序中实现贝宝。但是,当我付款时,django 一直抱怨我已经将 csrf_token 插入到我的模板表单中时没有它。
这是我的模板:
这是我处理贝宝元素的观点:
如果有人需要我的 ipn 视图:
我已经尝试过使用 django 提到的 requestContext 并插入了 csrf 令牌,但我不知道为什么它不起作用。
另外,如果我要启用定期贝宝订阅,我该怎么做?
任何帮助表示赞赏。
django - 如何使用 Django PayPal Payment Pro 向我的客户付款
我想用 Paypal Payment Pro 向我的客户付款,我的意思是从我的商家帐户向个人帐户汇款。目前,我只能要求客户提供他的信用卡信息,然后将钱汇到我的商家帐户,但我想要相反。
PS:我使用 Django WPP https://github.com/johnboxall/django-paypal
django - Django 表单向导和 django-paypal
我正在尝试将贝宝表单放入表单向导中。正在显示字段,但由于某种原因该按钮未显示。
我将表单向导包装在一个视图中,它正在工作。唯一缺少的是贝宝按钮。
视图.py
模板:
我不确定为什么会显示贝宝表单的所有字段,但不会显示按钮本身
django - django-paypal 没有 subscr_payment 的信号
我正在研究 django-paypal IPN 源代码,我意识到它没有 subscr_payment 交易类型的信号。
我可以假设如果我收到一条 subscr_signup IPN 消息,支付成功了吗?
我的信号处理程序
这目前不起作用,因为 ipn_obj.payment_status 未在 subscr_signup IPN 消息中发送。
paypal - 使用 django-paypal 实现 Paypal“_cart”
我正在使用 django-paypal ipn.standard 并试图让它与 paypal 的“_cart”选项一起使用。但是,我不能让它工作。
我使用这本字典来初始化表单:
我也尝试将 "CMD_CHOICES":"_cart" 添加到上述字典中,但没有任何区别
但是,在使用 {{ form.render }} 时,我得到了带有以下 html 的 Buy-Now 按钮:
没有显示购物车项目。
我正在查看其他几个线程,例如django-paypal 中的 Multiple Items。为了尝试一下,我从该示例中剪切粘贴了“项目”字典,并将其传递给我的 PayPalPaymentForm。但是,再次,在表格中,我没有看到正在出售的物品。
请问我错过了什么?