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/
Related
I've created two PayPal\Api\WebProfiles for express checkout. The first one (Billing) leads the user to the Non-PayPal account landing page. The second one (Login) leads them to the PayPal account login landing page.
This procedure works fine if the customer is not already logged in to paypal.
However, if he is, i've found that regardless of which WebProfile I use, paypal only shows the credit card options only when the paypal balance is not enough for the transaction.
Is it possible to force paypal to show the credit card payment option in this case?
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
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/
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.
Am having a lot of trouble getting my head around this paypal payment stuff...
How can i confirm that the user has successfully signed up for my subscription?
I know 0 about IPN but for example : If a user signs up to my website with example#e.com but uses the paypal account sample#s.com to pay then how to i match up the user.
I read that PDT do not send out a transaction ID (tx) for recurring (subscription) payments is that true ?
Just need help with it all... honest and easy :)
Thanks.
Yeah sometimes is hard to understand Paypal and all their documentation but for any kind of subscription i would recommend Paypal IPN. You set IPN URL in your paypal account for example: http://www.domain.com/ipn.php. Then you create a subscription button in paypal account where you can set the price, recurring price etc.
More about Paypal IPN you can read here:
https://www.paypal.com/ipn
When creating Paypal button you can also add some custom fields which can help you determine which customer really pays. So for example you have a database of users and there is user with userid=100, username=Nickname and registered_email=xxx#gmail.com. Now you can decide to add userid=100 as a custom field and add this to paypal button. For example CUSTOM=100.
ipn.php in this case is a script which handles all the logic. When user pay, Paypal send any status to http://www.domain.com/ipn.php (you set this in your paypal account as IPN URL). So ipn.php in this case needs to check if payment is complete and status is ok. Then retrieve a CUSTOM field ($_POST['custom']) which is in this case 100 (userid). And then update your database with users and somehow mark that this user payed of course if status is Completed.
Hope this helps a little. But in this case it's not really important from which paypal account user pays and which is registered in your database. All you need is that you somehow link it together. In this case with userid or something like that.
If you want to implement Paypal IPN and your customers don't use same email from my experience you can use a form to authenticate the user
user login on your website with xxx#example.org
user clicks on your item and pays with yyy#example.org
after he pays you can redirect him to a form where they can merge Paypal account with website account
every time that user pays then your IPN will be covered by the information he provided
you should save his payment information for later use.