How do I create an adaptive paypal payment without autorization? - php

I am using the adaptive paypal payment console here: https://apigee.com/console/paypal to make payments to people. I can't find a way to send money out to individuals without granting them permission (from me). I want to be able to send out payments to people automatically when they request it. How would I do this?

You mean you would be the sole 'sender', sending money to different PayPal recipients?
Simply use the MassPay API. This is not part of Adaptive Payments but rather the normal PayPal API's.
If you use Sandbox, you can request for MassPay to be enabled on your Sandbox account by filing a ticket with PayPal Merchant Technical Services at https://www.paypal.com/ or starting a thread in the appropriate forum at https://www.x.com/ (PayPal's developer community).
If you use the Live PayPal site, you can call / email PayPal Customer Service to get it enabled on your Live account.
For the API documentation, see https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_nvp_r_MassPay

Related

Paypal Webhook upon using Paypal Debit Card

I have been looking everywhere for a solution. Hoping someone else has a solution.
Here is the scenario, I use ClearCheckbook.com to keep track of the inflow/out flow of my accounts. I use their API to add transactions when I get a Paypal IPN I have a script that creates the transaction in clearcheckbook.com. It works great from when I receive money. However if I pay with my paypal account or more commonly when I use my paypal debit card, it doesn't notify me. I would like to be able to do the same, where I have some sort of webhook/notification that. Any Ideas?
At this time, our Webhook and IPN systems do not support notifications for purchases (send money or debit card purchases). Both of these systems only support notifications for payments being received into your PayPal account. The only exception to that is the Payouts API, which is technically considered sending money to other accounts. The Payouts API is supported by our Webhooks system but no other purchase (send money) transactions are supported by our Webhook or IPN systems as of now.
An alternative option would be to use our Sync API to get your account reporting data. You could then implement a solution to parse that data and use the ClearCheckbook.com API to add the purchase transaction data into their system.
Here is a link to our Sync API for further information on how to use that API.
https://developer.paypal.com/docs/integration/direct/sync/

PayPal API - Payments Pro Required To Process Billing Methods Directly?

It is my intention to integrate payment processing/subscription billing plans into a site using PHP and Javascript. I'd like to use PayPal to process credit/debit and PayPal charges. I read an article that said (Paraphrasing)
Normally you have to forward users to PayPal where they input their
billing information. PayPal Payments Pro allows you to process billing
info directly from your site.
I've also seen information to the contrary. This answer for instance. Also, the PayPal API docs don't say anything about needing Payments Pro to process a card directly from my site. Here you can see a card being processed without sending the user to PayPal under "Create billing agreement (credit card)."
I have a PayPal business account. I was able to generate a PayPal API Signature (API creds). Can I use the code shown in that quick start to process payment methods without applying for Payments Pro? I'm not talking about IPN. I know that anyone can use that.

Paypal API direct: buyer to seller payment(s)

Is it possible to be the middle man for a Paypal transaction without having anything thing to do with the transaction (PayPal account wise)
so the buyer pays directly into the seller's account and my site verify's the purchase (somehow) and emails download link.
How is this done and yes this is a coding question since it involves PayPal API and possible PHP workaround.
Any help would be happily received.
Yes, you should use Paypal adaptive payments to achieve this. Note that you need a PayPal Business account. A related question with answer: Online payments for a middleman

Send money to any PayPal account and receive payment notification

We are developing a website where people can use our tools to fundraise for their organization or cause. I was wondering if with paypal IPN I can send money directly to the person's PayPal account doing the fundraising.
For example. User John Doe signs up on our website Website.com. As part of the signup process John Doe enters his PayPal email address he accepts payments with.
He now has the page Website.com/JohnDoe to accept payments/donations from.
Using IPN & PayPal payments pro can I have the payment sent to his account directly and still have our IPN address (Example: Website.com/ipn) receive the payment notification and payment information?
Also does Paypal Payments pro work inside of IFrames. Let's say John Doe embeds his Website.com/JohnDoe into his own website JohnDoe.com. Or the other option is in a Facebook page custom tab.
If PayPal payments pro, or standard will not work for this will Adaptive Payments work? In adaptive payments does each person I'm sending money to have to signup for it?
Thank you!
Yes, collecting payments to various email addresses/accounts is very easy, and you can have a single IPN service to verify these transactions. See the docs at:
https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNIntro/
.... for how to set the IPN address per-transaction (overriding any setting your merchants may be using account-wide for other transactions.
iFrames are a problem; PayPal has historically not allowed this for security reasons; they didn't want the potential for snooping js in other frames on the page. However as the web frameworks for this have matured PayPal has opened up some in-page checkout options (e.g. lightbox checkouts). You should check the latest docs (or ask someone # PayPal) which, if any, integration models/checkout experiences currently support running inside iFrames.
Adaptive payments is not very likely to be the product you want; you will want either an PayPal Pro/Express Checkout solution or something packaged in the newest Braintree SDKs.
And finally: yes, with a few exceptions that probably don't apply to your use case, PayPal pays out only to PayPal accounts. Thus every business or person would need to sign up for a PayPal account in which to receive PayPal payments. (Note that in some cases users can sign up after the payments arrive... payments to an unsubscribed email address will be held and that email address notified of the pending payment and asked to sign up & complete the transaction(s).)
Using IPN, it's possible to set the recipient's address and the notification_url dynamically (see https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/). So using this method it ought to be possible for a payment to 'John Doe' to be made at your site, and for the payment to be sent to 'John Doe', and for the IPN notification from Paypal to post to a listener script at a URL at your site.

Setting up Instant Payment Notification with PHP - PayPal

I have set up a PayPal Sandbox account and have created a script to take payments using PHP/cURL which basically follows this tutorial. We have already purchased a PayPal Payments Pro account to use it with. Now I need to set up Instant Payment Notification (IPN) In order to show payment details on our confirmation page and keep track of transactions in our own database.
Questions:
How do I set up IPN in the PayPal Sandbox?
How does IPN tie into the NVP API I Used? I've seen several PHP Tutorials with code samples but none of them explain how to set it up with the API.
References:
Here is the NVP API Manual.
Here is the Order Management Integration Manual.
Here's an FAQ type post on PayPal.
Many Thanks.
IPNs should be enabled for you be default. If not, you can enable them from your PayPal account -> Profile -> My Selling Tools -> Instant payment notifications.
IPNs are triggered by API calls such as DoExpressCheckoutPayment, DoDirectPayment, RefundTransaction etc. In general, PayPal generates an IPN message when external events arise that might affect a transaction, such as disputes, chargebacks, eCheck clearing, and various recurring payment and subscription events.
When you setup your IPN listener,
Ensure it is reachable from the internet. You can use the IPN simulator to verify reachability.
Register a global IPN listener URL in the IPN settings page above OR provide a IPN notification URL with every API call. See the API reference to understand how this can be done.

Categories