Instant Payment Notifications (IPNs)
Instant Payment Notifications (IPNs) allow payment processors to communicate directly with your Publica.la store about transaction events. Unlike webhooks, IPNs are sent directly from the payment provider rather than from the Publica.la platform.
info
For a high-level overview of notification options, see the Notifications Overview.
Why Use IPNs?
IPNs provide several advantages:
- Direct communication from payment processors
- Faster notification of payment status changes
- Additional verification layer separate from Publica.la webhooks
- Payment provider-specific data and formats
Supported Payment Processors
Stripe
To configure Stripe IPNs:
- Access your Stripe Dashboard webhooks section at https://dashboard.stripe.com/webhooks
- Click the + Add endpoint button
- Enter the IPN URL:
https://{your-store}/payment/ipn/stripe
- Select the following events:
charge.dispute.closed
invoice.updated
customer.subscription.trial_will_end
customer.subscription.updated
customer.subscription.deleted
customer.subscription.created
charge.updated
charge.succeeded
charge.refunded
charge.pending
charge.failed
charge.expired
charge.captured
checkout.session.completed
- Save the configuration
MercadoPago
To configure MercadoPago IPNs:
- Access your MercadoPago Dashboard notifications section at
/developers/panel/notifications/ipn
- Add the IPN URL:
https://{your-store}/payment/ipn/mercadopago
- Select the following events:
payment
merchant_order
- Save the configuration
Best Practices
- Use Both Webhooks and IPNs: For critical payment flows, use both Publica.la webhooks and payment processor IPNs for redundancy
- Verify Source: Always verify that IPNs are coming from legitimate payment processors
- Idempotent Processing: Design your systems to handle potential duplicate notifications
- Monitor Failures: Set up monitoring for failed or missed IPN notifications