Signup with Paypal - php

I'm building a website using laravel and I need to integrate paypal for the registration. I have two pages where the user enter his information and the a last page where he can pay the registration fee with paypal. The customer provide me a ready button to pay throw paypal when the button is clicked it open the paypal website. It is the first time I use paypal I don't know how to finish the registration once the user pay the fee

You can use a listenner like this: https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNImplementation/

Related

attach paypal account after login to my website for future payments

i want to attach paypal account to my website after paypal login so that we only asks the user for login at first time .
So that we can send payments to his paypal account in future without asking him to login again from our site.
Process what i want
1)User comes to my website click on login using paypal
2)after login he is redirected to my website after redirection we store some of his details so that we can use this in future
Now main part why i need this
3)after sometime 2 weeks or 1 month user gets $50 from our website to his account and he wants to withdraw that amount using paypal.what i want to do here is to send $50 to his paypal account without asking the user to login again on paypal
Can somebody tell me how can i do it.
i have read Paypal login api but it says it works like facebook and twitter login not the way i want it to.
you can use Mass payment service from PayPal, where you can transfer the amount to your customer's PayPal account. You can send to many customer at once, only you need is their account mail ID. For more details about Mass payment kindly
Click here

Store username logged in user after paypal payment

I wrote a website in PHP last weeks. Users can register and login to my website. Logged in users are also able to buy an item on the site. Payment is handled by paypal via a paypal payment button. Payment is working fine, but.
Problem:
When a logged in user pays for the article, i only see in paypal that someone bought my article. but i need to know which user it was. Is there a way to store the username of the user that bought the article?
Its a problem that the paypal button is created by paypal, i cannot modify that button with my own code.
Which Payment product are you implemented?
For PayPal Payment Standard, there is "custom" variable that you can specify anything for your own tracking purposes:
https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/#id08A6HH00W2J
For Express Checkout, you can use "PAYMENTREQUEST_n_CUSTOM" variable:
https://developer.paypal.com/docs/classic/api/merchant/DoExpressCheckoutPayment_API_Operation_NVP/

Add custom informations to paypal recurring payments

I'm trying to make a recurring payment system with paypal on my own website.
People on my website have accounts, and they will pay in order to get more options.
I've a "suscribe" button created with paypal (price, payments intervals etc choosen in paypal). Onclick, my customer is redirected to paypal website in order to continue his purchase.
This is working, if the payment performed I add options to the user in my database.
So, there is a recurring payment each months but I have to create a "Cancel" or "Disengagement" button.
This disengagment button have been created too, so onclik the user is redirected to the paypal website to cancel his subscription.
If the subscription is canceled, paypal send me informations with the IPN (Instant Payment Notifications) to an URL indicate in paypal options (paypal-notification.php).
The problem is that the user isn't redirected to my website after this, so I can't get his session information (id or email indicate in my database) to delete his options in the database.
I think that is possible to add custom options to paypal when a user suscribe at the options. For example, I give the user ID (of my database) to paypal when he is suscribing and Paypal give me back this Id when the user cancel is suscribtion ?
Thanks !
PayPal uses a subscription ID. When you're registering the subscription you can send through a custom ID, normally an order ID but in your case it could be the user ID. So you just add <input type="hidden" name="custom" value="$id"> to your form, and then the IPN will have that ID in it for every notification, including the cancellation notification.
When the user first subscribes you'll get a subscription started notification from PayPal, at that point you should record the ID given to this subscription by PayPal. It's stored in the subscr_id value passed back by PayPal IPN. Then when the user cancels the subscription the notification will have that subscription id, which you can use to identify which user has cancelled their subscription. This would be the better way, rather than relying on the user ID being passed back from PayPal.

Guest Payment Support in Embedded Payment Flow for Preapprovals

We are currently redirecting our users to PayPal in order to accept a Preapproval (Adaptive Payments). There, the user can log in to PayPal or just enter his Credit Card information.
If instead of redirecting the user we use the 'embedded flow' (lightbox or new window), the user can login or signup only.
How to let the user insert their Credit Card info in the embedded flow?
If you are using Preapprovals with Adaptive Payments you can't use guest checkout, i.e. your users will need either to log-in with their Paypal account or to create one.
I know it sucks, but as far as I know there is no workaround.

Paypal subscription button

Background
I'm building a website where I need to use some sort of recurring billing payment method. My client does not have Paypal's Website Payments Pro so he decided to use a simple Subscribe button.
Problem
This is all nice and easy to use but how would I get a notification from Paypal when such a payment has been made? I had some experience with Paypal before and there was a field return_url that would be accessed by Paypal to notify the website but checking the variables on their site this field does not exist anymore or perhaps not available with this type of button.
when you create subscribe button that time you will find that option(in step 3) , so according your need you can set url and get ipn variable
Step 3: Customize advanced features (optional)
Take customers to this URL when they cancel their checkout
http://yourwebsite/complete_registration.php?action=cancel&sts=0
Take customers to this URL when they finish checkout
http://yourwebsite/complete_registration.php
Advanced variables
notify_url=http://yourwebsite/complete_registration.php
i hope it help you

Categories