> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dezerx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PayPal IPN

> Follow this guide to connect PayPal IPN with Spartan

## Prerequisites

* PayPal Account
* Access to your PayPal account settings

## Enable PayPal Instant Payment Notifications

<Steps>
  <Step title="Enable Instant Payment Notifications">
    Enable PayPal Instant Payment Notifications in your PayPal account settings.
  </Step>

  <Step title="Set the notification URL">
    Set the notification URL to:

    ```text theme={null}
    https://billing.example.com/payment/paypalipn/ipn
    ```

    Replace `billing.example.com` with your billing domain.

    <img src="https://mintcdn.com/dezerx/y8vFoAhtdIIxWI9B/public/gateways/paypal-ipn/step-1.png?fit=max&auto=format&n=y8vFoAhtdIIxWI9B&q=85&s=6eca7e003af7c52b146a049e1a704635" alt="PayPal IPN configuration" width="1230" height="721" data-path="public/gateways/paypal-ipn/step-1.png" />
  </Step>
</Steps>

## Configure PayPal IPN in Spartan

<Steps>
  <Step title="Open the PayPal IPN gateway">
    Log in to Spartan with an administrator account, then go to **Modules → Payment Gateways → PayPal IPN**.
  </Step>

  <Step title="Configure PayPal IPN">
    Enter your PayPal email address, select whether the account uses sandbox or live mode, and save the settings.

    <img src="https://mintcdn.com/dezerx/y8vFoAhtdIIxWI9B/public/gateways/paypal-ipn/step-2.png?fit=max&auto=format&n=y8vFoAhtdIIxWI9B&q=85&s=e00848bcedb2f4684ba4339dbba52cc7" alt="Spartan PayPal IPN configuration" width="1866" height="911" data-path="public/gateways/paypal-ipn/step-2.png" />
  </Step>
</Steps>
