PayPal API Pay Email Address Directly? - php

One of the features on my site allows users to pay via PayPal for items from other users. I'm using the standard REST API since I had already made the code for another project a while ago, which works fine.
https://developer.paypal.com/docs/api/#create-a-payment
Currently, the page sends a 'v1/payments/payment' request which I execute to receive the money in to my PayPal account which created the access token. Is there a way I can directly get the user to pay another PayPal email address?
If not, I guess the only way is to do another request to pay the owner of the content from my PayPal once I receive the money - although it means PayPal get to charge a fee twice.
Thanks.

Related

In Stripe is there any method to make a standalone payment when user clicks on a link which is received in email?

I have a situation where a user have to make a payment once user receives an email.The problem is, the email which the user receives should contain a link which when clicked by the user it should send the user to stripe account of the merchant and pay to that particular merchant and redirect to a custom url with all the status.
This is not a feature that Stripe offers directly. Stripe does not host payment forms at this time -- the entire payment flow takes place on the Stripe user's site.
Using Stripe's API, you could build something like what you described. You can also take a look at existing third-party integrations that specialize in invoicing: https://stripe.com/works-with/categories/invoicing

How to verify IPN is pointing to my server from a Paypal User?

I'm currently developing an application which has to be able to process PayPal Payments from multiple e-mails and then has to redirected to my IPN class located at my server.
All the users of my application, have the possibility to set-up their own PayPal e-mail address into my system, and then the customers will pay directly to his PayPal Account (that means no intermediates).
But there's a problem, I must ensure that my sellers are actually connected to my IPN. Why? Because if they are not, when a customer makes a payment, the transaction will be actually completed, but they won't be able to download their purchased item, because my application could not receive the params.
So, the question is: how can I ensure this:
User has a valid Paypal Account (based on e-mail)
How do I know (and verify it each time) that this e-mail will sent a params directly to my server's IPN? (So important)
How do I verify each time that some customer makes a purchase?
Thank you so much guys!
I would integrate Express Checkout and have them authorize you $1 (or whatever your minimum for currency is). This way you are guaranteed that the customer has a PayPal account with some balance. You can void the transaction via API and they get their money back.
There's no way to guarantee they send you IPN for their payments. The best bet would be to have them authorize you to run third party calls on their behalf and take the money for them via your system.
See #2

Which paypal SDK/API to use to send credit card payments to email address?

Is there anyway to do the following using the Paypal APIs in PHP? I can't seem to find exactly what I need.
We are a merchant - we have several businesses who list their goods on our website.
Customers will need to pay for these goods using a credit/debit card. We don't want to force Paypal use/registration - in fact, we don't really want the customer to interact with Paypal at all.
We'd like to create a payment form where they enter their credit card details - we would then use the API to pay this directly to the business' Paypal account using their email address.
Using the REST API I've been able to do this to an extent - the only problem with this is that it doesn't seem dynamic i.e. I can't set the Payee email address to receive the payment - it's linked to my account via the ClientID and ClientSecret. Obviously this is not what I need - I want to pay into the account of the owner of the goods, not mine.
I've seen 'Guest Payments' mentioned but that seems to require the user being redirected to Paypal - something I'd rather avoid.
Thanks in advance.
I don't think the REST API is quite ready for what you're doing. The Classic API will handle it with no problem, though.
If you don't want any interaction with PayPal at all then you'll need to use Payments Pro, which allows you to tie credit card payments directly into your own forms via HTTP request/response with PayPal (no redirect or iframe).
Each business would need to be signed up with their own Payments Pro account, and then they would Grant API Permissions through their PayPal account profile for your app to make API calls on their behalf. Once they've done that, you just pass their email address or PayPal merchant ID into the SUBJECT parameter of API requests and it will use their account accordingly even though you're still using your own API credentials.
The Permissions API allows you to automate this and tie the grant permissions step directly into your app so business owners can do that quickly and easily from within their profile or during signup with your site. This works with auth tokens, though, as opposed to email addresses and merchant ID's.

Confirmation of a donation made to an external PayPal account

I have a website that allows my users to donate to charities via PayPal. I want to track the donations that a user makes, but I don't have direct access to the charities' PayPal accounts.
This is kind of a follow-up to this question, which provides a good explanation of IPN tracking, but I think it relates to tracking payments made to an account which I own.
Is it possible to send confirmation of a donation to a third party back to my website so that I can track it?
P.S. I really hope this isn't the wrong way to post a follow-up question, and that it doesn't count as a duplicate...
If you use notify_url / NotifyURL in your Payments Standard code or API requests you can override the PayPal account profile and have it send the IPN to whatever URL you specify in that parameter.

A way to verify PayPal Account Status is Verfied using PHP

Basically I want my users to associate PayPal account in their accounts for identify verification purposes. I am developing a marketplace site and wanted to integrate paypal as my identity verification procedure.
Is there a way to verify email address, first name and last name using PHP like using $_GET variables or $_POST variables? If there is can you show me how?
I tried search and I get Adaptive Accounts GetVerifiedStatus API. But that totally new to me, I don't know where and how to start.
Your best bet here is to make them start, but not complete, an Express Checkout. A normal Express Checkout (referencing Classic but REST works the same way) looks like this
SetExpressCheckout - Tell PayPal you want to authorize $1.00 and have them log in and authorize the payment
GetExpressCheckoutDetails - Take the token from step 1 and get their PayPal account details. Included in this is PAYERSTATUS, which will tell you if their PayPal account is verified or not
DoExpressCheckout - You won't do this, but this is where you finish the process and get funds. Since the data you want is in Step 2, just ignore it and the session will expire.
You could implement GetVerifiedStatus API to determine whether the specified Paypal account's status is verified or unverified.
To use that API, you need to submit the application request to Paypal for approval first. Submission portal link here.
Then use the GetVerifiedStatus API call directly, refer to API request fields,link.
Sample SDK download link.

Categories