paypal / ipn-code-samples

Other
562 stars 486 forks source link

Fixing parse_qsl query string output #153

Open fookenCode opened 5 years ago

fookenCode commented 5 years ago

IPN Verification of payload requires that all keys and values are provided back to the VERIFY_URL. If any blank values are omitted, this will cause an otherwise valid payload to return 'INVALID' from the PayPal endpoint. Adding the 'keep_blank_values' argument will ensure that these elements will be added to the query string provided to PayPal to validate.