YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

How to Integrate Paypal for varying month charges? Options
radon
#1 Posted : Wednesday, March 03, 2010 5:17:55 AM
Rank: Starting Member

Groups: Registered

Joined: 3/3/2010
Posts: 1
Hi,

I would like to integrate paypal into my current servicing site. I am able to generate the details from database, and retrieve the users' charges, such that a user charges would be using this forumla:

Amount payable = no. of hrs service used within the month x $5 per hr

1. I would like to charge users based on their usage on per month basis, and automatic billing/deduction from their credit cards. Should I be using a subscribe or buy now settings for my situation?

2. As different users will have different chargeable amount, based on their usage. How should I program/code it in such a way that the payment button for a specify user is set to charge the amount that user is payable for?

Thanks in advance.
Sponsor  
 
nds_webdesign
#2 Posted : Friday, March 05, 2010 4:54:47 AM
Rank: Junior Member

Groups: Registered

Joined: 10/15/2009
Posts: 159
Location: Omaha, NE USA
If you want to charge the users automatically you would need to use Website Payments Pro with DoReference Transaction API you would simply reference a previous transaction ID and charge a new amount. I know in the Sandbox this can be turned on by sending a request via https://www.paypal.com/mts. In the live environment I think you have to apply for it.

The next more simple solution is to have the client make the payment monthly by sending them an invoice via email with a link to your site. They go to your site and login, they would have to click some sort of a "make payment" link or something like that, and that would do an SQL query to your database where you store the amount that is due for that user. You would figure out that amount then dynamically build the page to input that amount in the HTML form of the "Buy Now" Button.

Then when the client clicks the Button the amount is shown to the client at PayPal. If you don't have some type of "login" site this may prove to be a lot of work where as you could just create a payment URL and send that to each user.

For example:
Code:
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=nate@ndswebdesign.com&item_name=testLink&amount=1.00


the amount could be placed into each link and then when the user clicks the link in the email they could make the payment. Copy and paste the above URL in a browser to see the effect.

This way you could create the URL once then change the amount for each user and just send them an email.

But for a long term project you may want to consider the second option, it would be free once it was set up as you wouldn't have the recurring charge of Website Payments Pro, and it would all be automatic based on when the client logged in.

If you decide to set up the second option let me know, I could look at the current site and get you a quote.

Thanks,
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.150 seconds.