Rather than use the same form for both the PDT callback and the postback, split these apart. We'll take a minimal set of parameters from the callback, and fill in rest using the postback endpoint.
I've included a test which includes the full set of query parameters I'm seeing on most (but not all) PDT callback requests. Note payment_date is in ISO format in these requests, and notify_version is a string. With this PR both these parameters will be ignored.
Fixes issue #239.
Rather than use the same form for both the PDT callback and the postback, split these apart. We'll take a minimal set of parameters from the callback, and fill in rest using the postback endpoint.
I've included a test which includes the full set of query parameters I'm seeing on most (but not all) PDT callback requests. Note
payment_date
is in ISO format in these requests, andnotify_version
is a string. With this PR both these parameters will be ignored.