Get fee amount using PayPal Adaptive Payments API? - paypal

I am beating my head against the wall with this one. I am setting up a payment using the PayPal Adaptive Payments API, where one of my platform's users receives a payment from their customer. I need to be able to see the amount of the PayPal fee related to that transaction.
I'm familiar with and have tried using the PaymentDetails API operation, but unfortunately, the only quasi-relevant information that method (and the IPN) returns is fees_payer (who paid the fees), not the amount of the fee.
I've also looked into the GetTransactionDetails operation, but that appears to be only for Express Checkout and Website Payments Pro APIs, according to this document.
Any ideas how I can determine the fee amount on these transactions?

With Adaptive Payments the IPNNotificationURL specified in the Pay request would be an app specific IPN that won't provide much info about that payment itself.
If you setup IPN in the receiver account profile, then an additional IPN would be triggered that would be transaction specific and would include the fee.

Related

PayPal Send Money API

Is it possible to send money or issue a non-referenced refund from the regular PayPal APIs?
I don't think we're enabled for MassPay, and our pre-existing system doesn't work with Adaptive Payments.
You could use the Pay API (which is part of Adaptive Payments and would require an App ID).
You could also use the DoNonReferencedCredit API if you're pushing funds back to a credit card that doesn't have an original transaction associated with it.

Paypal adaptive payments - audit trail

We're planning a web app that allows users to pay our clients directly through Paypal so there will be many different users and each will be paying a specific client through the website and there will be multiple clients.
These payments may be one-off payments but a few may be recurring.
We won't be charging a transaction fee for this so we basically want the whole payment amount to be deposited in the client's Paypal account (so they pay their own Paypal fees). I've looked at chained payments to be able to take a payment for a client but I'm just wondering what the actual flow of money is in a chained payment.
When a chained payment is made does Paypal deposit the payment go into our Paypal account first and then be paid into the client's account or does the client portion (in this case 100%) go directly into the client's account?
I'm asking as we're not sure how it would affect us in terms of accounting in our business if all the payment money was actually passing through our Paypal account (even if only briefly).
Or is a chained payment not the ideal solution for this?
Thanks,
Steve
If you are not taking a cut of the money, then I believe either Simple or Parallel payments would be a better solution. If you are going to be processing payments for a single buyer to a single merchant, then you can just use Simple Payments. If you are going to be processing payments for a single buyer to multiple merchants then you'd want to use Parallel Payments. More information on each of those APIs can be found here.

using paypal express checkout API to handle payments for third parties?

i am creating a small marketplace where sellers can sell their products and receive payments to their PayPal account directly from the buyer.
i've previously been using "website payments standard" but am looking to switch to the express checkout API to generate a one-time payment token each time someone purchases something and which then allows buyer#email.com to send a payment directly to seller#email.com without the involvement of my PayPal account.
is that possible?
i've only found one option in the documentation at https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/ called "PAYMENTREQUEST_n_SELLERPAYPALACCOUNTID", but is that the correct way to send the entire payment from the buyer to the seller without any amount going to me?
also, do i NEED to have my own "USER" and "PWD" to generate an API token each time if I am receiving no payment mysefl?
Think you are looking for Adaptive payments.
Adaptive payments handles payments between a sender of a payment and one or more receivers of the payment. You are an application owner, such as a merchant that owns a website, the owner of a widget on a social networking site, the provider of a payment application on mobile phones, and so on. Your application is the caller of Adaptive Payments API operations.
So, in general if you want to act as API caller and to felicitate the money transfer between buyer and seller, Adaptive payment is the way to go.
Steps to go live with Adaptive Payments

Adaptive Payments VS Website Payments Pro for our online marketplace

We are a UK-based marketplace site that wants to never force buyers to sign up for paypal. We allow users to set up customized stores through our site, and our second requirement is that these users be able to become sellers with only a basic paypal account. When a buyer makes a purchase, we are the primary receiver, taking 15% and passing on the entire paypal fees to the secondary receiver (user), as well as all the remainder of the transaction. My question is: What's the best solution paypal offers for this? It seems that chained payments would be, but if I understand correctly the Website Payments Pro system is the only one that guarantees that buyers outside the UK wouldn't need a paypal account. Is there a way to take the money in ourselves with Website Payments Pro and use the API so it transfers the 85% (minus the fees) to the user's paypal account?
It depends on what approach you want to take.
I would prefer Chained Payments as it allows guest checkout (credit card payments outside a PayPal account) with certain restrictions and will easily allow the user to receive the funds and automatically forwards the 15% cut to your account. This removes the need to collect funds outside of the payment flow. This means no invoicing or no lost dues!
Website Payments Pro only offers credit card payments however you would also need to offer Express Checkout for PayPal payments as well. You also have the flexibility of hosting the order form so you control what the users see. The downside is you'd have to collect funds from the user outside the payments. Such as monthly invoicing, billing agreements or manual processing.
Here is the criteria we use to allow guest checkout. Please keep in mind these are due to rules and regulations, not PayPal's choosing.
The credit card has a lifetime limit of 10 purchases outside a PayPal account
The user's email address must not be attached to an existing PayPal account
I don't have a direct answer for you but hopefully this helps make your decision.

Withdraw money feature for paypal

Basically I have a script where user should have Withdraw button on his account so he can automatically withdraw money from my paypal balance
What API should I use in this case and is this available at all for paypal?
You may be interested in the Mass Pay API. You can send them in batches, say daily, weekly, or monthly.
See here for an explination directly from paypal:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_api_masspay
The MassPay API allows you to send payments to up to 250 recipients with a single API call. The payment amount for each recipient is specified individually, but all payments in a MassPay API request must have the same currency type. You can choose to specify recipients by email address or PayPal customer account number.
And here for PHP examples (if you're using PHP):
https://www.x.com/paypal-apis-masspay-php-5.3/soap
There are additional examples and a large amount of documentation on the first PayPal.com link, regardless of programming language used.
Please keep in mind Mass Pay has it's own fee schedule.
There is also Adaptive payments, which may be more up your alley, as it's designed for more fine-grained control and has a larger API available. Information can be obtained here:
https://www.x.com/content/introducing-adaptive-payments
However, the Adaptive payments will require approval of each Payment by you (the sender) via the PayPal website. If you want 100% automation, the Mass Pay API is the way to go.
Please realize a mistake here could cost you infinate amounts of money, so tread extremely carefully.
If you're attempting to withdraw money from your PayPal account and move it to your bank account that's not something you can do via the API, unfortunately. You have to do that manually through PayPal, or you can call them and request that they enable AutoSweep for you, which will automatically move the balance in PayPal to your bank at the end of each day.
Ya there is preapproval api in AdaptivePayment. You can approve the api caller for the amount he want to withdraw from your account on your behalf.
You can refer api here : https://www.x.com/developers/paypal/documentation-tools/api/preapproval-api-operation