ChartMogul uses the PayPal Instant Payment Notification to keep your account data in sync with PayPal.
PayPal only permits one IPN per account, so if you're already using your PayPal IPN (as part of your own checkout system for example) you may need to set up a relay to forward the IPN notification on to ChartMogul.
A webhook relay allows you to use your PayPal IPN in multiple locations.
To forward the PayPal IPN you'll need to send PayPal payloads to your ChartMogul webhook URL using a POST request.
What's a webhook?
A webhook is a method of requesting and delivering real-time updates over the web. In this scenario, we'll be requesting real-time data from PayPal and delivering it to ChartMogul.
To get started, locate your PayPal webhook. Navigate to Settings & Data > Sources. Locate your PayPal source and click the Settings icon. Find your webhook URL in the Enable Instant Payment Notifications in PayPal section.
How can I forward PayPal data to ChartMogul?
- No development needed: Utilize third-party services, such as Zapier's PayPal IPN relay app, for webhook forwarding. No manual coding is required.
- Choose the right service: Investigate various services to seamlessly forward your PayPal IPN (also known as webhook) payload from your server to ChartMogul.
- Save PayPal Client ID first: Before you begin forwarding, save your PayPal Client ID in ChartMogul. When ChartMogul receives the PayPal IPN payload, it retrieves additional customer details from your PayPal account. Hence, it's vital that the IPN matches the Client ID you've provided to ChartMogul.
- Match accounts: The PayPal IPN should originate from the same account linked to the PayPal Client ID stored in ChartMogul. If you've saved your Production PayPal Client ID in ChartMogul, make sure to send webhooks from your Production PayPal account, not the Sandbox account.
- Ensure the correct payload delivery: ChartMogul requires an unchanged PayPal payload delivered with an HTTP POST request.
- Ensure payload integrity: When you forward the PayPal IPN to ChartMogul, it's crucial that the payload remains unchanged. The payload arriving at your server from PayPal should be forwarded to ChartMogul as an exact replica. Use UTF-8 encoding for the packet.
- Alternative method: An IPN redirect plugin can also be employed to achieve this task.
How do I check that it's working?
To confirm your PayPal IPN is set up correctly, navigate to Settings & Data > Sources and select your PayPal source. When you can see customers in the table, ChartMogul is importing your data.
Or, navigate to Customers and filter your customer list by your PayPal source.