Well, no, the user row gets updated in a separate context. Paypal has
a service called IPN, which is Instant Payment Notification. It sends
data via post at a URL you specify when the transaction is complete.
This necessarily has to happen in a separate context(ie, a new
unlogged in auth).
On Sep 26, 2:11 pm, mdipierro <[email protected]> wrote:
> I assume you do
>
> db(....).update(field=value)
>
> similarly you can do
>
> auth.user.update(field=value)
>
> On Sep 26, 3:44 pm, Tyler Laing <[email protected]> wrote:
>
> > I ran into an interesting issue in testing my site (http://www.novelite.ca
> > ). If the user buys tokens while logged in, via paypal, paypal then
> > sends a notification to the server via IPN. Processing this adds the
> > tokens to the user's account. My problem is that the auth.user object
> > isn't updated when the user entry is updated in the database.
>
> > Is there a way to refresh the user object in Auth safely to account
> > for this update?
>
>