@shlokka
im trying to integrate reoccuring payments in a website using paypal...setting up the initial payment is easy enough, but i cant find anything anywere that shows me how paypal will tell my site when a reoccuring payment is made??
That has nothing to do with PayPal. It has something to do with your checkout sheet. You need to create a function or a check box (membership, fee) to let your customer check it so it would add it to the checkout sheet and once the sheet is submited it will be in the database and it also send it to PayPal.
LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 350
Skill Endorsements: 47
LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 350
Skill Endorsements: 47
@shlokka
in the html form for the user to create the subscription, there is a return url... once the user has paid, paypal takes them back to my site, and my site checks the variables that have been passed from paypal....if the values match the details on my site, its confirmed.
I assume you got everything set up already.
If the customer want to be in membership and pay a fee. All you need to do is to create a option for them to do that on the checkout. Once everything is verify that customer submit the payment and info. First it will send the info to db and second it will go to PayPal.
Then your customer will have to sign up from here:
https://www.paypal.com/pdn-recurring
Then your customer will have to fill out the info payment
LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 350
Skill Endorsements: 47
@shlokka
hi, yes for the initial payment... but after the first year paypal will take the next payment without needing to ask the customer.
Yes, if the customer want to cancel they can cancel anytime.
the site wont be generating a new invoice, paypal will just auto take it as the user has allowed it in the initial payment.
Once the first payment is pay you get an invoice. It will do auto until the it is cancel. You can print out the invoice for each recurred cycle if you want.
so how does my site know if theyve paid in year 2, 3 , 4 and so on?
This question you ask it's really on your side not Paypal. You need to create a table for this auto payment. I think I mention this alot of times it has to be on the checkout sheet.
LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 350
Skill Endorsements: 47
if i create a table say with 1 = paid, 0 = failed... how exactly am i supposed to check this with paypal?
Yes or No. Where did you get 1 or 0 it's either Yes or No or just Y or N. It meaning the customer wants to be in a membership or not.
i would assume that everytime the user pays, paypal will send data using the post or get method to a specific url i set, just as it is in the initial payment?
Read the guideline:
Identifying Your IPN Listener to PayPal
https://www.x.com/sites/default/files/ipnguide.pdf
LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 350
Skill Endorsements: 47
if im right then the ipn code on my server is supposed to connect to paypal toconfirm the info...
do i request this via paypal? or should i like create a cron or something to run every day to run the function on my server??
Is your checkout sheet is connected to the Paypal? If it's connected it will goes directly to the Paypal page. On your checkout sheet it should have like a check box for membership once it is check and submited it will appear in PayPal page with the info including the membership fee.
I think you need to take time to do this because the questions you are asking is a bit confusing to me the reason why is because if your checkout sheet is connected to PayPal then there shouldn't be any issue all.
I hope you understand that Daniweb is a educational forum and there is limit how much I can help you. I can't help you integrate shopping cart or any payment plan because you are getting pay to do that and it's unfair for me or rest of Daniweb members not getting the fair share.
LastMitch
Industrious Poster
4,374 posts since Mar 2012
Reputation Points: 149
Solved Threads: 350
Skill Endorsements: 47