我在我的 django 应用程序中使用django-paypal。我正在尝试将定期付款创建为:
paypal_dict = {
"cmd": "_xclick-subscriptions",
"business": settings.PAYPAL_RECEIVER_EMAIL,
"item_name": self.subscription.name,
"a3": str(self.subscription.rate),
"p3": 1,
"t3": self.subscription.recuring_type,
"src": "1",
"sra": "1",
"no_note": "1",
"invoice": "%s" % str(self.order.pk),
"notify_url": "my_notify_url",
"return_url": "my_success_url",
"cancel_return": "my_cancel_url",
"currency_code": self.subscription.currency.code,
}
paypal_form = PayPalPaymentsForm(initial=paypal_dict, button_type="subscribe")
我只收到了两个ipn,哪个可以subscr_signup
,subscr_payment
哪个可以。我收到了payment_was_successful
,很好。问题是andipn_obj
从来没有价值,两者总是空的,在沙箱中我可以看到创建了循环配置文件。我是否错误地进行了定期付款,我是否遗漏了一些将其识别为定期付款的变量?recurring_payment_id
payment_status