Wolphie Posted February 13, 2008 Share Posted February 13, 2008 I'm stuck on creating a token kind of system. For example, say if somebody makes a payment through paypal - Then paypal re-directs them to a dynamic url which contains a token which can only be used once and is changed every payment to validate it. How would i go about doing this? Cheers, J. Quote Link to comment https://forums.phpfreaks.com/topic/90938-tokens/ Share on other sites More sharing options...
Isityou Posted February 13, 2008 Share Posted February 13, 2008 You can generate random MD5 hash codes and build a Personalized URL that is destroyed once used. Quote Link to comment https://forums.phpfreaks.com/topic/90938-tokens/#findComment-466093 Share on other sites More sharing options...
cooldude832 Posted February 13, 2008 Share Posted February 13, 2008 if your using paypal the best way to verify a payment completed is their IPN system. Read up on their site but basically paypal allows you to carry through a single 64 bit string in a custom variable that you can return when the payment is completed. they have a php premade ipn script to look at to help you with this Quote Link to comment https://forums.phpfreaks.com/topic/90938-tokens/#findComment-466098 Share on other sites More sharing options...
laffin Posted February 13, 2008 Share Posted February 13, 2008 Use the IPN system from paypal. It sends a Payment notification to a script on yer site once a payment is sent to your account. Just depends how ya is using the credit/token system. most ppl use a stored credit system, where their accout can be increased with credits once payment is recieved. and credits are deducted when used on the site. Quote Link to comment https://forums.phpfreaks.com/topic/90938-tokens/#findComment-466100 Share on other sites More sharing options...
Wolphie Posted February 13, 2008 Author Share Posted February 13, 2008 Alright, i'll look into that and report back. Quote Link to comment https://forums.phpfreaks.com/topic/90938-tokens/#findComment-466139 Share on other sites More sharing options...
Wolphie Posted February 13, 2008 Author Share Posted February 13, 2008 Do i need to change anything on this pre-made script? If so, what exactly? Quote Link to comment https://forums.phpfreaks.com/topic/90938-tokens/#findComment-466213 Share on other sites More sharing options...
laffin Posted February 13, 2008 Share Posted February 13, 2008 U have to think about that. How does yer script handle tokens/credits (if any)? 1) Dun have it - Ya will have to edit the script to support a credits system. (Hard) 2) It Has it - Ya will have to look how credits are added/subtracted from the users account. (Easy) Quote Link to comment https://forums.phpfreaks.com/topic/90938-tokens/#findComment-466225 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.