Search code examples
djangopaypalpaypal-sandboxdjango-paypal

Not receiving IPNs in paypal sandbox


"Instant Payment Notification (IPN) history" in sandbox paypal is empty although the following values are sent with 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

All payments succeed but I don't receive any IPNs in the paypal sandbox account.

The IPN simulator works correctly and i receive IPNs in my website listener.

I am using django 3.0.2, django-paypal 1.0 and my website is online with https.


Solution

  • Yeah PayPal IPN Sandbox service is down.

    AFFECTED PRODUCTS: Notifications

    Initial Notification: Affected Regions: Global

    We're aware of an issue impacting instant payment notifications (IPN) in the Sandbox environment. IPNs have not been generated since January 31, 2020. Teams are working to resolve this issue.

    Link: https://www.paypal-status.com/incident/sandbox

    Next time, check this page to see if one of their products/services is down: https://www.paypal-status.com/product/sandbox