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.
Related
I'm currently integrating the PayPal's PHP REST API SDK. However, reading the documentation and the code I've found that the method to get the payer's shipping details is deprecated. Also, PayPal is encouraging to use Braintree's SDK to process credit card payments. Also, the git repository seems to be very quiet.
Thus, here are my two questions :
Is PayPal abandoning the REST API ? Is it still a good idea to use its deprecated methods to return the payer's shipping details ? Or is there another way I haven't discovered yet ?
Is PayPal still a good option for guest credit card payments ? Or do I risk having my e-commerce down suddenly one day ?
I am aware of other solutions that have PayPal support such as Braintree. However, my busisness isn't large enough for them to accept my application so I am stuck with PayPal (coming from Shopify and going independant)
Thanks a lot for your time !
LazyTanuki
I am working for a company that uses paypal nvp for its transactions. I am not sure if these are two completely different things, but if they are, what is the difference? There are so many different paypal account types and API's I am starting to get confused.
If anyone could help me out, it would be great!
Thanks!
The NVP API is part of the PayPal Classic API which includes PayPal Payments Pro. So to integrate Pro you could use NVP or you could use XML/SOAP.
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.
I can't find where the key to my Paypal Payments Pro API keys are. (I have a Pro account)
I need to do a DirectPayment, does anyone know where to find the right keys?
I know of this under My Profile > My Selling Tolls> API access
It says: "Manage API credentials to integrate PayPal Express Checkout."
But that is only for Express Checkout not Direct Payment. Is that the API info I use for direct pay? Because it seems like I cant get it to behave. Is there another setting I need to enable that Im missing?
The error I keep getting is:
Payment Error: This transaction cannot be processed due
to an invalid merchant configuration.
Cliff Note: I have gotten this to work on sandbox
I think you're getting confused (and don't worry, you're not the only one) because PayPal recently changed all their terminology for things.
It used to be called Website Payments Pro, and this used DoDirectPayment and Express Checkout. This was completely separate from their PayFlow Gateway that they acquired from Verisign years ago.
Now, they've dropped the word Website so they're just calling it Payments Pro, and they're actually putting people into the PayFlow Manager system instead of the "old" DoDirectPayment system.
From what you're saying here it sounds like you're actually setup with the new Payments Pro. That means you'll use the PayFlow Gateway to integrate the credit card processing instead of DoDirectPayment. PayFlow uses your manager.paypal.com credentials as opposed to the standard PayPal API credentials you're looking for.
Then, to add Express Checkout you would follow the instructions that you're seeing there, which generates the standard style (username, password, and signature) that you'll use with those API calls.
All of that said, technically, when you're approved for the new Payments Pro you're supposed to have access to all of the API's (PayFlow and regular PayPal), and when you generate your API credentials "for Express Checkout" these same credentials should work (in theory) for any other API's that hit PayPal directly as well. I can't promise that, though.
So...what are you supposed to do? Well, you either need to switch to the PayFlow gateway for your integration, or if you'd just rather use DoDirectPayment, you need to call PayPal and request that they convert your account from the new Payments Pro 3.0 to the old Website Payments Pro 1.0.
2.0 was actually called Payments Pro PayFlow Edition, which just confuses things even more.
Hope that helps.
I am developing an e-commerce site in ASP .Net 4.0 C#. I want to use PayPal for receiving payments but through credit/debit cards so that customer never leaves my site. Please provide some sample code/links for this.
Note: I don't want to use HTML form tag for submitting my requests but wana make use of the API/ Web request.
Many many thanks for the help
Regards
Vivek
You are looking for PayPal's .NET NVP SDK:
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_AspNet_NVP_SDK.zip
You'll need to generate API credentials, here's a tutorial:
https://ppmts.custhelp.com/cgi-bin/ppdts.cfg/php/enduser/std_adp.php?p_faqid=737
You can find other PayPal SDKs at www.paypal.com/sdk
I hope this helps.
Lorefold
Exactly; as mentioned previously, you'll want to use PayPal Website Payments Pro and/or PayPal Payflow Pro in that case. Website Payments Pro is only available in the US/CA and UK, whereas Payflow Pro is available in AU/NZ and US.
Either of these two products will allow you to process cards on your site.
Keep in mind though, that processing cards on your own site will mean you'll need to adhere to PCI DSS and be compliant these regulations. By redirecting buyers to PayPal to enter their card details / financial data, you can shift that liability to PayPal.