I'm trying to create a Paypal Payment using its REST API (https://developer.paypal.com/docs/integration/direct/payments/paypal-payments/), but I couldn't find out how to send the payment to a third-party Paypal business account.
Is it possible using the REST API?
I know this can be done using Paypal SDK for Asp.net, but unfortunately there's no sdk available for asp.net core.
Thanks,
Bruno.
Yep, this is possible to do by setting the payee. Please see https://devblog.paypal.com/setting-payee/
Related
I am working for a company that is using Paypal pro. There are so many Paypal account types, API's, and SDK's that I am starting to get confused with it all. At developer.paypal.com, there is documentation for many different things. What API and/or documentation do I use to start integrating paypal into my website? What is the difference between all these different ones?
Any advice or help would be great, as I am stuck.
Thanks for your time!
Personally, I would avoid the REST API and stick with the Classic API for now. The REST API is very new and doesn't do (much) more than the Classic APIs do. In fact, the Classic API is much more mature has a lot more functionality, which is one of the reasons I still prefer and recommend it.
With PayPal Pro you will use one of two APIs depending on which version you have.
Website Payments Pro 3.0 - This uses the DoDirectPayment API
Payments Pro 2.0 - This uses the PayFlow API.
Payments Pro 2.0 is actually the newer version. If you're interested in more detail on that you can take a look at my article on the History of PayPal Payments Pro.
So those would be for direct credit card processing through your site / application from your own custom checkout page. To add PayPal payments to that, you would use Express Checkout APIs. Specifically,
SetExpressCheckout
GetExpressCheckoutDetails
DoExpressCheckoutPayment
If you are working with PHP this PayPal PHP SDK will make all of these calls very simple for you.
I am looking into implementing Paypal Standard Payment product. The basic reason being "offsite payment" (i.e. we dont want payments being captured at our own site, but on paypal's own payment page via redirection).
However, previously I used to get it done via (now called) Classic API.. I wounder if the new REST API supports this offsite / paypal redirect standard payment method? This is because there is no mention of these classic products names on the REST documents (instead, they are listed in Classic API section only)
Secondly, does Paypal Standard (even via REST) support Direct Card payments? or only Paypal Account payment?
Thanks.
REST does not encompass all Classic API features. It's mainly for mobile development (although not exclusive to that), using OAuth, which is more familiar to mobile developers. Payments Standard is not an API product at all but it can be used in conjunction with API calls to a limited extent. Classic API has the Button Manager that lets you set up custom encrypted buttons that can start a Payments Standard payment.
REST does support direct payments and supports almost everything Classic does in that regard.
In my application I have implemented the Paypal website payment standards. But when I use it I can't retrieve details for recurring users. Can I use the API to do the job? Is this a valid or meaningful method?
no you can't retrieve the standard subscription. But you could use the paypal API to make the recurring payments.
http://www.codeproject.com/Answers/526264/How-to-create-recurring-profile-with-express-check#answer1
the above link will provide you the code to create it.
Tip:-
The mentioned code first create a Sales account and then convert it in to the recurring account
With standard subscriptions you can't access those via the API. If you want to work with subscriptions via the API you'll need to use the Recurring Payments platform instead of Payments Standard.
I have a site which runs smoothly with PayPal and express checkout. NOw my client wants a refrence transaction (billed directly from customer when he ordered via cellphone etc without involving him). He asked me to use payflow pro for this but I am really really confused how to use payflow pro with paypal API. Please Guide me . I already read their payflow guideness PDF but didn't get any idea from there. Thanks
Payflow Pro is an entirely different set of API calls, separate from PayPal.
Is your client sure he wants to use the Payflow Pro API, if he has already integrated with PayPal Express Checkout?
If all you want to do is a reference transaction, all you have to do is add 'L_BILLINGTYPE0=MerchantInitiatedBilling' to your initial SetExpressCheckout API call and call the DoReferenceTransaction API call to create this reference transaction.
I would know if PayPal provides the possibility to execute payments avoiding exiting from own website.
In other words, using PayPal API is it possibile to execute payments inside the own website without being redirected to PayPal servers?
Thanks
Yes. It is called Website Payments Pro.
You must handle all of the integration on your end, including installing an SSL certificate.
To supplement hztera's answer, here is some helpful documentation to accomplish integrating PayPal into your site:
Website Payments Pro
DoDirectPayment API Operation
Pay Flow
NVP API Basics
Sample Code