How to get sellers PayPal account from eBay transaction - paypal

How can I get a sellers PayPal email account after I've successfully purchased an item on eBay?
I'm writing an application which makes a purchase on eBay via its API. When it successfully purchases, I receive a Transaction ID from eBay.
I now want to use the PayPal API to pay for this item, and require the sellers email address. I understand that their API has methods like GetTransactionDetails, but I'm making the request as a buyer, and also only have the eBay transaction ID.
Where can I get the seller's PayPal email address?
Thanks!

There is no API based approach to remitting purchases on eBay via PayPal.
After testing many different options and wading through the vast mess of eBay API "documentation" and raw responses, it's evident that the PayPal email address of the seller is NOT available unless you are the seller.
Trying to access this field as the buyer, despite being part of the transaction, will simply return "Invalid Data" in this field.

I'm assuming you're using the PlaceOffer call (from the Trading API) to purchase the item.
You can get the seller's email address using the GetItemTransactions API, and there would be a strong liklihood that that email address would be the same one associated with their PayPal account, but it's not guaranteed to be the same. For example, for large-volume sellers, they might have "sales#mystore.com" for their eBay contact but "payments#mystore.com" for their PayPal one.

Related

PayPal as payment gateway on my marketplace website

I have a website where my users can create custom pages to sell virtual things. At the moment, the only payment gateway their buyers can use is Stripe since it's the only my website currently supports. I would like to add PayPal support, so my sellers can enter their PayPal email, then buyers can purchase goods using PayPal.
I looked into PayPal's API, and the only thing I could really find was the checkout API for commerce. I'm not interested in having any of that fancy API, or needing to have sellers enter API key(s). I simply want sellers to enter their PayPal email, and boom - done. I also do not want to have to get a verified business on PayPal if possible since I still need to do a lot of work before submitting my application for approval from PayPal.
Example:
Joe creates a page on my website to sell pictures. He wants to add PayPal support, so he goes to my website's dashboard, enters his PayPal email, and then clicks confirm. Now his buyers can purchase his pictures using PayPal.
Where should I be looking for information on this?
Create a PayPal business account. Follow the Set up standard payments guide and make 2 routes on your server, one for 'Create Order' and one for 'Capture Order', documented here. Both routes should return only JSON data (no HTML or text). Inside the 2nd route, when the capture API is successful you should store its resulting payment details in your database (particularly purchase_units[0].payments.captures[0].id, which is the PayPal transaction ID) and perform any necessary business logic (such as sending confirmation emails or reserving product) immediately before forwarding your return JSON to the frontend caller.
Pair those 2 routes with the frontend approval flow: https://developer.paypal.com/demo/checkout/#/pattern/server
To send the funds to another account, specify a payee in the order creation request.

Getting user's business name and country via PayPal APIs

Our company has clients who have PayPal accounts. We also have their PayPal emails.
The issue is how to get client's business_name and country by providing its PayPal email?
Is it possible to make it using PayPal API?
Thanks in advance!
When a user makes a payment (Set up standard payments), you'll receive their shipping address country code as part of the v2/checkout/orders capture response.
If you need to the country of a PayPal account separately from such a payment capture's shipping address, then you might need to implement Log in with PayPal requesting the scope address, and have the user log in.
However, the capture response might also have a "payer" object with the billing account country (which can be different from the shipping country in some cases).

Using PayPal API to send money between PayPal Accounts

I'm trying to build out a process for users of my app to send money from their PayPal wallet to another user's PayPal wallet.
The idea is that there is no need for credit cards, just wallet to wallet transactions, so that there are no fees attached to the transfer (we're not taking payments or selling goods, just helping people settle their debts with friends and family)
Can anyone confirm whether this is possible with PayPal? And which API / method you would use for this? Thank you!
There is no API to send money without fees. Such functionality is available in www.paypal.com for users from certain countries using certain funding sources (their PayPal balance or a bank)
In general, sending money to another account can be done by adding a payee variable to a regular PayPal Checkout: https://developer.paypal.com/docs/checkout/standard/customize/pay-another-account/

Paypal Payments - What to store from them?

I was wondering, if you have coded a website which uses paypal payments as a payment method (the kind of payments where you get redirected to their site for payment, not web payment pro).
What kind of details can I store? Is it just their paypal email address that can get supplied to me or do other details regarding their paypal account also get sent to me via their API which can be stored on my site?
As already mentioned, you get the details of the transaction, so email address, name, delivery address and the contents of the shopping cart.
You can send custom parameters from your form though, such as phone number.
Paypal, by default doesn't ask users to provide a phone number and therefore usually doesn't send you one. However, it's often useful for retailers to have a customers phone number.
If your shopping cart is populated by your website and then customers are asked to complete a brief, name, phone number, email form before submitting to Paypals site you can send these extra form fields to Paypal and have them come back to your server for storage/checking.
However... I found it very erratic! There seemed to be a problem with my account when I did this and the PP technical team couldn't explain why it was only sometimes working! I gave up in the end and found a Payment gateway with credit card and Paypal integration, now all my payments come through the same channel and callback methods regardless of type.
http://www.securehosting.com I use now.
Mostly only the details pertaining to the transaction can be retrieved in the usual procedure, as it appears even when you see the transaction details in your paypal account when you receive payments. However, it would be helpful for you if you can provide more information on what you wish to look for.

Could I make users config their PayPal account info in my website, so they can receive payments without giving me private info?

I'm building a web application and I would like that each user could configure their necessary information about their PayPal accounts in order to receive payments from the app. Can this be done?
I've seen a website that asks each user to type their PayPal email in order to receive payments, but I don't know what I have to do programmatically in order to use that user's account information so that person receives the payment.
Thanks,
Brian
Yes, it is possible to do this using PayPal Website Payments integration. Essentially your client needs to set their PayPal account up to receive payments, this usually requires them to prove that they're a legitimate business, although charities and some other personal reasons for taking payments such as wedding gifts are allowed as well.
Once setup they will be given a unique vendor id which can be embedded into a form on your website. When a customer wants to purchase something, this vendor id is passed to paypal and they handle the transaction from there. This means you don't have to store any credit card information on your website.
Check out the PayPal Website integration guide here: https://www.paypalobjects.com/en_US/pdf/PP_WebsitePaymentsStandard_IntegrationGuide.pdf