I am using django-paypal into my django application. I am trying to create recurring payment as:
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")
I received only two ipn's which is subscr_signup
and subscr_payment
which is ok.
I received payment_was_successful
which is good.
The problem is that ipn_obj
never had value for recurring_payment_id
and payment_status
, both are empty always and in sandbox i can see that recurring profile is created. Am i making recurring payment wrong, am i missing some variable which will identify this as recurring payment?