Re: User id in afterPaypalNotification
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 <procsh...@gmail.com> 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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home