PayPal IPN Setup
Configure PayPal IPN to automatically process PayPal Friends & Family invoices on your SellAuth store.
To automate the processing of PayPal Friends & Family invoices on your SellAuth store, you need to set up PayPal's Instant Payment Notification (IPN) system. This allows PayPal to send real-time notifications to SellAuth whenever a transaction occurs.
Use your primary PayPal email
The PayPal email you save in SellAuth must match your primary PayPal email address. Payments are matched by email, if they don't match, payments won't be detected automatically.
There are two main options for setting up your IPN endpoint:
Option 1 (Secure)
Set up your own unique IPN endpoint using a Cloudflare Worker, meaning you will have an unique URL that forwards IPN messages to SellAuth. This is the recommended approach to avoid potential issues with PayPal flagging your account, since the endpoint will not be shared with other users.
Option 2 (Easy)
Use SellAuth's shared IPN endpoint directly. This is the quickest way to get started, but it comes with risks since the endpoint is shared among multiple users, which could lead to PayPal flagging your account.
1. Create a Cloudflare Worker
- Go to your Cloudflare dashboard
- Navigate to Workers & Pages
- Click Create Worker
2. Paste the Worker Code
Replace the default code with the following:
export default {
async fetch(request) {
if (request.method !== 'POST') {
return new Response('Only POST allowed', { status: 405 });
}
const body = await request.text();
const targetUrl = 'https://sellauth.com/invoice/paypalff/webhook';
try {
const upstreamResponse = await fetch(targetUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body
});
const responseBody = await upstreamResponse.text();
return new Response(responseBody, {
status: upstreamResponse.status,
headers: upstreamResponse.headers
});
} catch (err) {
return new Response('Forwarding error', { status: 500 });
}
}
};3. Deploy the Worker
- Click Deploy
- Copy your worker URL (e.g.
https://your-worker.workers.dev)
4. Configure PayPal IPN
- Go to: https://www.paypal.com/merchantnotification/ipn/preference/edit
- Enter your worker URL (e.g.
https://your-worker.workers.dev) in the Notification URL field - Click on "Receive IPN messages (Enabled)"
- Save
Steps
- Go to: https://www.paypal.com/merchantnotification/ipn/preference/edit
- Enter the following URL:
https://sellauth.com/invoice/paypalff/webhook - Click on "Receive IPN messages (Enabled)"
- Save