Thank you I am using the 'custom' attribute because 'Item_number' is shown in paylal page like 'item_name' do. 'custom' or 'invoice' are hidden
On Mon, Sep 26, 2011 at 12:03 AM, nurvzy <[email protected]> wrote: > You can't use sessions, Paypal is talking to your site, not the user. > Once the user leaves for paypal they complete the purchase then paypal > takes over and communicates to your application via a POST to the url > you define. So to get user data I'd suggest passing in what you want > passed back. > > For example you can pass in a user_id in with the item_number key. > > $this->Paypal->button('Pay Now', array( > 'amount' => '25', //your amount > 'item_name' => 'Some Item', > 'item_number' => 'ItemNumber|UserId' > )); > > Then in your app_controller afterPaypalNotification callback just > parse out the userId > > list($itemNumber, $user_id) = explode("|", $ipn['item_number']); > > You get the idea. > > Hope that helps, > Nick Baker > > On Sep 25, 3:36 pm, ZAky <[email protected]> wrote: > > I get nothing from > > $this->Session->read('Auth.User.id'); > > or > > $this->Auth.user('id') > > in afterPaypalNotification at app_controller. > > Did I lost the session? > > Can I send user identifier to PayPal and get it back with the IPN > > notification? > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
