From readme:
"Special note: when using these modules all uid's must be in the range 1-65535
and, if using lm_paypal_paid_adverts, the same range applies to node ids."

Can we lift these limits? It's no good for a big site!

Cheers,
Chris.

Comments

lyricnz’s picture

This restriction seems to be caused by using a single field in the Paypal data to hold two values:

  // The uid is in the bottom of 'custom'
  $uid = $ipn->custom & 0xFFFF;

  // Some other value may in the top
  $other = ($ipn->custom >> 16) & 0xFFFF;

I will read the paypal IPN docs to find out if there are other ways in which we can do this. https://www.paypal.com/ipn

lyricnz’s picture

Assigned: Unassigned » lyricnz

Reading the PayPal documentation, it appears that this field can be up to 255 characters, so I think we can remove this restriction.

https://www.paypal.com/IntegrationCenter/ic_std-variable-reference.html#...