-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom data got truncated #257
Comments
I would not be at all surprised if PayPal mangled data like that. I would recommend doing base64 encoding to reduce the chances of your data getting mangled. You will still need to be careful of data length - don't expect PayPal to allow you to store much, or to be correct in what it advertises as the maximum length. In general, see if you can reduce the amount of data in your custom field, which can be done using, for example, a single user ID or creating an "Orders" table, putting the data in there and sending only the order id in the custom field. |
@spookylukey Thank you very much for your reply. I will consider what you are writing. But length or something in the custom string is not the problem here. Tens or hundreds of payments did pass just OK in few recent months I have been using this type of payment. There have been longer custon data strings than those that didn't pass and also there is nothing special in them (special characters etc.). This problem did occur just in the last month only for few payments out of many. |
That sounds about normal. There have been many such instances of PayPal's stuff mostly working, but just not working sometimes. |
When I originally implemented the In fact I only really need the Order ID, but PayPal leaves me only one character in the faulty cases, so I can't work with that. Now I will try to use |
Recently I have got 4 payments where the IPN returned with truncated
custom
field.I did create the (unencrypted) form with data like:
But i am receiving IPN with only
...&custom={&...
in URL, so I can't pair the payment with the data in DB.This would probably be error on side of PayPal, but also can be caused by some interaction with the form in browser on user's side (but it happened for 4 different users).
I am creating this issue mainly because I want to ask if somebody has similar experience.
The text was updated successfully, but these errors were encountered: