I am using the PayPal IPN to get responses from its transactions but my main
concern is a user creating an account, then has no transaction can login.
For my setup a user buys "credits" so they can still log into their account
if they run out of credits since access is now limited with no credits. I
just want to prevent new users from creating accounts when cancelling
transactions and can still login and see "behind the scenes" when in theory
only if you buy something do I want them to have an account and login.
The idea of field that gets flagged by the IPN makes sense but still the
account is created. Just don't want to end up with accounts that do nothing
or dummy empty accounts.
Thanks,
Dave
-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Jon Bennett
Sent: December-30-09 10:27 PM
To: cake-php@googlegroups.com
Subject: Re: Temp data question
Hi Dave,
> I have a registration form where user enters all their info and
> selects an option for membership level which sends them to PayPal to
> complete the signup process.
> Problem:
> If user fills out the form, validates, it saved the new user but at
> PayPal they cancel the transaction so they now have an account with no
> access since they cancelled.
>
> I figured the best way would be save that data to a temp table and
> when the transaction is complete pull that temp data then save the
> user info creating the actual account.
>
> Ideas? Suggestions?
You can ask paypal to send a confirmation request after a successful
transaction (an IPN or 'instant payment notification'), so I would create
the user account as per usual, but flag it as 'unconfirmed', paypal will
include the email address in the IPN request, which you can use to look up
the user record and update it as confirmed.
cheers,
J
--
jon bennett - www.jben.net - blog.jben.net
Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com To
unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group
cake-php+at http://groups.google.com/group/cake-php?hl=en
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.722 / Virus Database: 270.14.122/2590 - Release Date: 12/30/09
03:57:00
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
No comments:
Post a Comment