Pay Website => User - php

I am finishing a website in which I have incorporated collections with IPN, and the truth, I'm very happy because I works great.
The question or problem I find is that I need to also pay users in certain cases from the website itself.
Someone could give an example of a payment function specific email? ... In PHP with Paypal Premium account.
I assume that when payment is ordered I also enter my ipn.php to be processed in the same way that happens when my page becomes ... is not it?
Thank you very much in advance for your help.
Greetings to all.

Related

How can I tell if someone is subscribed with a Paypal Subscribe Button?

So I have a PayPal Subscribe button all set up on my test website. It's a monthly subscription that a user would have to pay to gain access to their profile. I can't seem to get the logic right in my head. It might be my lack of knowledge with the PayPal classic API's, but everything I've searched has led me to a dead end. Using PHP and MySQL, how could I keep track of a user and make sure they are subscribed and/or if they cancel their subscription? Thanks for any help that may lead me to solving this, I appreciate it. If you need any of my code, I'll be glad to add it and edit, I just don't know if the code is needed for this question.

Paypal Payouts in Stripe?

Been working on a project. The original idea is that a user can add a product, another user will buy the product and I get for example a 10% cut of the final payment as it was processed on my site.
I have been kind of leaning towards Stripe to be honest, but I'm not sure how/if you can actually do this. I know you can do it in Paypal using 'Paypal Payouts' but I like the idea of the user not leaving the site etc.
Anyone any idea how to do it in Stripe ? Or if you can take a percentage?
Will be doing this in PHP.
It's called Stripe Connect, thanks to those that commented.

PAYPAL: How to charge users for a 1 year account and after checkout, send user to login?

I have a PHP website, in which people sign up for 1 year, manually per year, with no recurring fees. But, I'm new to Paypal. I've made a business paypal account. And when I make a button, and paste to my page, I just don't know what to do next.
What I want is for someone to pay with credit/debit card. And after they submit, it redirects to my
post.php process page. In the process page, it will check whether the user actually paid in the last page, or just typed the page in the URL to get a free account. If he paid, add the user to database. but if he just typed the URL, boot him.
My goal is:
Signup.php---> Paypal (via paypal button)--------> post.php (validate whether is paid)-----> (if true, go to login.php)--->login.php
Im very familiar with PHP so any snippets or examples would mean so much. And if you don't mind, some thourough explanations would be highly appreciated. It's just that their documentation is a total mess (to paypal noobs anyway). Any help is very much appreciated. Thanks so much

Paypal integration confusion

I'm designing a database system, which sells courses to students. This is all done within PHP. I want to take Paypal payments on my website and having done some research I need IPN.
I've been reading docs/guides on how to achieve this from www.x.com but its quite confusing to find info I need as there seems to be more than one way of doing something. The IPN stuff looks pretty straight forward, paypal just needs the unique Invoice number, which the notify script uses to retrieve the record and post the appropriate response into a database and if all goes well, redirect page to a thank you.
The thing is which method do I initially send my values across to Paypal, I don't really want to pass on quantity and shipping data as all of these pieces of data are irrelevant I don't want my end user to see. Do I have to start looking at using the paypal api?
Thanks for the advice
Since your question seems to be "where should i start looking for a good paypal integration with php" i'll give you some general "advice". I had the same problem just a couple of months ago.
Yes you've to read paypal docs, and unfortunatly they don't have the gift of clarity.. very complete but i didn't find them very clear.
However this php class has been very helpful for my similar project: https://github.com/Quixotix/PHP-PayPal-IPN hope can help you too.
Also these articles/classes/docs has been helpful (but at the end i'm not using them) to clear my mind about PP integration:
http://drewjoh.com/wiki/code/classes/phppaypal
http://www.geekality.net/2011/05/28/php-tutorial-paypal-instant-payment-notification-ipn/
set up a sandbox account https://developer.paypal.com/
then go through some of the tutorials
you will also need to set up some test accounts, pay attention to the nav on the left (from the developers page). It has everything you need

Canceling/Modifying a PayPal subscription using PHP

I'm trying to set up a website that allows users to sign up at various membership levels, each at their own price, using PayPal Subscriptions. I have searched Stack Overflow and gotten numerous very helpful answers about setting up the IPN script, which I have done successfully. (Thanks!)
My question now is, how does a member cancel their account within my site? If they cancel using PayPal, my IPN will detect it and act accordingly, but there must be a way for my users to cancel their subscription on my page, right? Or at least provide a more direct link than simply telling them "log into PayPal, go to this page, and cancel it there"?
I've found scattered references to generic ideas like "have your script send a cancel request to PayPal" or some indication that maybe only the Pro (Advanced?) membership with PayPal allows you to do this, but I haven't found a straight answer that says definitively yes or no, and if so, how.
Can I have my members cancel and/or upgrade/downgrade their PayPal subscriptions through my PHP website, and if so, what code samples or other considerations will I need to make that happen? Most helpfully, is there a tutorial that can walk me through it? I'm fairly familiar with PHP/MySQL, but APIs and such are still new to me...
Thank you!

Categories