Sunday 7 July 2013

Setting Up Your Custom IPN Listener on Paypal

You can make your Custom IPN Listener known to PayPal by specifying the listener’s URL in following two ways:

  1. Setting Up IPN Notifications on Paypal
  2. Dynamically Setting the IPN Notification URL via Paypal Button’s HTML Variable

Setting Up IPN Notifications on Paypal

After you log into your Paypal Account, follow these instructions to set up your IPN Listener:

  1. Click ‘Profile’ on the ‘My Account’ tab
  2. Click ‘Instant Payment Notification Preferences’ in the Selling Preferences column
  3. Click ‘Choose IPN Settings’ to specify your listener’s URL and activate the listener.
    The following screen appears:
    edit-instant-payment-notification-ip
  4. Specify the URL for your listener in the ‘Notification URL’ field
  5. Click ‘Receive IPN messages (Enabled)’ to enable your listener
  6. Click Save
    The following screen appears:
    instant-payment-notification-ipn5

Dynamically Setting the IPN Notification URL via Paypal Button’s HTML Variable

In this case, PayPal sends the IPN message to the listener specified in the notification URL for a specific button or API operation instead of the listener specified in your Profile.

To specify a notification URL for a Paypal Button, specify your IPN Listener’s URL in the ‘notify_url’ HTML form variable of that Paypal Button’s HTML Code.

No comments:

Post a Comment