我正在尝试使用django-paypal标准通过生成“订阅”按钮来实现订阅付款。我能够收到IPN帖子数据,但是没有返回定期付款的信息。除了表格,交易在paypal上注册。我在沙盒环境中工作。
我发送的数据如下:
dict = {
"cmd": "_xclick-subscriptions",
"business": settings.PAYPAL_RECEIVER_EMAIL,
"a3": "11.99",
"p3": "1",
"t3": "M",
"src": "1",
"sra": "0",
"no_note": "1",
"no_shipping": "1",
"rm": "1",
"currency_code": "USD",
"lc": "US",
"quantity": "1",
"invoice": invoice_number,
"item_name": "Item 1",
'item_number': "1",
"notify_url": notify_url_value,
"return_url": return_url_value,
"cancel_return": cancel_url_value,
"custom": uid,
}
答案 0 :(得分:-1)
我在你的词典中看到了几个问题。修复键值可能会解决您的问题。
P3
应为整数,但您将其作为字符串传递 notify_url
,return_url
和cancel_return
应代表实际网址
" notify_url":" http://www.example.com/your-ipn-location/"
" return_url":" http://www.example.com/your-return-location/"
" cancel_return":" http://www.example.com/your-cancel-location/"