Jump to content

Paypal/php integration/customization


Chrisj

Recommended Posts

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 = 8).

 

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.