Chrisj Posted June 3, 2009 Share Posted June 3, 2009 Currently, a vistor to the web site can search by keyword and the script generates a total number of results. I’d like to multiply the number of searched results by a set price, and proceed to Paypal for payment, and then be re-directed to a protected page. If the set price for each searched result is $1, just as an example, and the total number of searched results generated is 29, then process 29 x $1 = $29.00. If the number generated is 29 or more—process $1 x 29, or $1 x30, or $1 x 31, etc. If the number generated is less then 29, charge the minimum price of $29, and the unused paid units get stored in the User account for credit towards future purchases. For example, if the number generated is 9, the User pays the minimum price of $29, and 20 credits are added to his membership account. The next time he visits the web site he searches by keyword, this search generates results, the total number, for example is 12, he pays nothing, and proceeds (to Paypal? or) the protected page, and now has a credit in his account of 8. (20 - 12 = . When he next visits and generates a number, say for example 15, he only has 8 credits in his account, so he must pay another minimum payment of $29, which puts his account at 29 + 8 - 15 = 22 credits on account. Can you give me your thoughts on this? Quote Link to comment https://forums.phpfreaks.com/topic/160729-paypalphp-integrationcustomization/ 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.