IPN custom fields error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the redesign of the payments UI and email notifications was introduced recently, it also introduced an error in the IPNs of custom fields (option_selection1 etc).
This error doesn't happen in the sandbox, as it still uses the old style UI etc., which makes testing somewhat difficult.
The error is only apparent if a user leaves a custom field blank. E.g. if the payments form has fields os1, os3, & os4, then the IPN message contains option_selection1 (os1), option_selection2 (os3), & option_selection3 (os4). In the sandbox, and under the old UI, this mapping is the same regardless of whether the fields are filled or blank.
With the new UI, if a field is blank it is not included in the message, and the option_selection values are re-assigned. E.g. if in the above scenario the user leaves os1 blank, the IPN message contains option_selection1 (os3) & option_selection2 (os4). If os3 is blank, the message contains option_selection1 (os1), option_selection2 (os4).
This makes it impossible to process the IPN in code in a consistent manner. Added to which it's an undocumented change, and different from the sandbox. I presume this change was unintentional and is a bug.
A side issue is that the custom fields are no longer included in the email notification, which makes manual verification much more difficult.
I would like to report this to PayPal tech support, but I can no longer find any way to raise support tickets. Can anyone tell me how to expedite this with PayPal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A quick update - I've just run another sandbox test and I see the sandbox has been update to the same as the live pages - and now exhibits the same bug. 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My custom field information is no longer shared in the emails I receive, nor on the PayPal website. It had done so in the past, so I suspect it relates to this problem. I didn't write the script, so I'm a little frustrated. Any suggestions as to how I might resolve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How to get the custom field from a payment with webhook/API? in REST APIs
- the make custom button does not display the memo field even though i added one in PayPal Payments Standard
- Suddenly receiving "Authorization failed due to insufficient permissions" intermittently in REST APIs
- Prevent changing shipping address via SET_PROVIDED_ADDRESS not working. Orders V2 Advanced Checkout in REST APIs
- Error when using Payflow as Shopify Gateway in Payflow