我正在研究django-paypal IPN源代码,我意识到它没有subscr_payment事务类型的信号。
我可以假设如果我收到一条subscr_signup IPN消息,支付成功了吗?
我的信号处理程序
def subscription_succesful(sender, **kwargs):
ipn_obj = sender
if ipn_obj.payment_status == "Completed":
user = User.objects.get(pk=ipn_obj.custom)
business = Business.objects.get(user=user)
business.active = True
business.save()
subscription_signup.connect(subscription_succesful)这当前不起作用,因为没有在subscr_signup IPN消息中发送ipn_obj.payment_status。
发布于 2012-05-31 08:49:46
我刚刚集成了订阅贝宝模块使用Django贝宝。payment状态是complete,它调用下面的IPN信号subscription_signup和subscr_payment的recurring_payment信号。然而,仍然在工作,并有问题通知贝宝回来,所有的信号已经received.Are你得到重复的信号从贝宝付款后?
发布于 2012-11-02 00:27:14
我知道你的帖子很老了。payment_status不是用于订阅的有效标记。
def subscription_succesful(sender, **kwargs):
ipn_obj = sender
if ipn_obj.txn_type == "subscr_signup":
user = User.objects.get(pk=ipn_obj.custom)
business = Business.objects.get(user=user)
business.active = True
business.save()
subscription_signup.connect(subscription_succesful)https://stackoverflow.com/questions/10541283
复制相似问题