【发布时间】:2020-05-19 14:56:46
【问题描述】:
沙盒贝宝中的“即时付款通知 (IPN) 历史记录”为空,尽管使用 django-paypal 发送了以下值:
# Paypal initial values
paypal_dict = {
"business": settings.SANDBOX_PAYPAL_RECEIVER_EMAIL,
"amount": "2.5",
"currency_code": "GBP",
"item_name": "item",
"notify_url": request.build_absolute_uri(reverse('paypal-ipn')),
"return": request.build_absolute_uri(reverse('blog:article', args=(ar_id, "payment_successful"))),
"cancel_return": request.build_absolute_uri(reverse('blog:article', args=(ar_id, "payment_cancelled"))),
"custom": "plan",
}
Paypal listener configuration:
Notification URL https://www.<mysite.com>/paypal/
Message delivery Enabled
所有付款都成功,但我在 paypal 沙盒帐户中没有收到任何 IPN。
IPN simulator 工作正常,我在我的网站监听器中收到 IPN。
我正在使用 django 3.0.2、django-paypal 1.0,我的网站通过 https 在线。
【问题讨论】:
-
PayPal 的支持将更好地告诉您为什么特定的沙盒交易没有触发 IPN。他们可以看到缺少的东西。确保您登录的是实际的 sandbox 帐户 ...sandbox.paypal.com/cgi-bin/webscr?cmd=_display-ipns-history
-
这是一个客服问题,公众无法解决。
标签: django paypal paypal-sandbox django-paypal