Is paypal-rest-sdk still a valid approach or should we switch to braintree? - paypal

I am reading this paypal-rest-sdk based payment integration approach from a blog, but I can't find it on Paypal's official developer pages. Question: If someone can help me link that blog's approach to a Paypal's developer page explained method, I'd appreciate.
Instead, I see a Braintree based payment integration approach listed on official Paypal developer page. Question: Is this one more preferable than the previous one? Plus, can this approach accept credit card payment (reading the doc, it seems to only support Paypal payment)

The PayPal-Node-SDK is deprecated, and the Express Checkout via Braintree Mobile SDK is only worth using if you need a native mobile SDK. So the answer to your question, based on the information provided, is most probably: neither.
Instead, you need to do a better job of reviewing the information on https://developer.paypal.com , namely https://developer.paypal.com/docs/checkout/
For a good server-side integration, the front-end at https://developer.paypal.com/demo/checkout/#/pattern/server will be particularly useful.
Note that the fetch() routes it calls need to be placed with actual routes on your server, which will call the PayPal APIs for creation and capture during teh checkout. For those API operations from your server, use the supported Checkout-NodeJS-SDK.

Related

How to integrate automatic payment charged in ionic with paypal using credit card

I’m developing a delivery application that will work with PayPal for payments. Ionic/Cordova has a native library that makes things easy, yet the flow is not the way i’d like it to be.
With “PayPal-Cordova-Plugin”, the authentication window opens for every payment and the user must click the button to confirm the payment.
What I would like to implement was something more direct, transparent. The user would authenticate with PayPal within my application and with the probable token that would receive this authentication, I would execute the checkout requests (an example would be the payment by PayPal on Uber).
With the PayPal developer documentation I could not find a way to perform this implementation on Ionic, so I would like help with that.
The old PayPal Mobile SDKs used by the cordova plugin are ancient. Do not use those. Do not use those for anything. If you try to use those, you are going to have a bad time.
The first paragraph at the top of the Readme of https://github.com/paypal/PayPal-Cordova-Plugin points you to the things you should be using instead.
As is mentioned there, PayPal Express Checkout via the Braintree Mobile SDK is a worldwide option for those who need a native SDK. It is documented here: https://developer.paypal.com/docs/accept-payments/express-checkout/ec-braintree-sdk/get-started/
You will need a webservice for the server-side portion.

REST API vs Classic APIs

I am working with PayPal integration for the first time and am confused regarding the two solutions. I need to accept direct payments. User enters credit card information and I use PayPal as the processor. I would also at a later point after release like to add PayPal Express Checkout for convenience. I have PayPal Payments Pro, which assigned me a Payflow account. Which documentation should I follow to accomplish both? There are so many assorted PDFs, many of which are over 100 pages, and I don't have a clear idea where I should start.
I would greatly appreciate a quick separation of services (XMLPay? DoDirectPayment?)
I am using C# / ASP.NET and already have the core and rest api libraries installed in my project via NuGet. I also have an app created and an ID+Secret pair to use.
I have called PayPal but the phone team does not have the proficiency to answer these questions and simply refers me to the documentation site. Hopefully a developer who has been down this road can steer me in the right direction. Thanks!
I would suggest the REST Apis, they support both direct credit card and express checkout depending on which funding instrument (CC vs PayPal) you pass in the pay request.
There is also a C# SDK provided to get you started, all info available at: https://developer.paypal.com/webapps/developer/docs/api/
For anyone running into this post in their search for more PayPal integration information (as I did), the C# REST API wrappers (provided by PayPal) are very useful, and they include full sample projects showing you how to perform most common tasks.
You can find them here: https://github.com/paypal/PayPal-NET-SDK

Paypal Integration with website

I am working on a event-based website that requires PayPal payment. I checked the documentation as well as the questions and answers on Stackoverflow. However, I am still don't know what is the best way to accomplish this. The following are the steps that I have to do:
An audience registers for an event. He provides all the personal information and choose the sessions that he will attend.
The system saves his information into a database and redirects him to the PayPal website so that he can pay by using credit card or PayPal account.
After the payment is verified by Paypal, call back to the website so that I can save the payment status in the database and process further steps.
If you have done something similar, please share it with me. Thank you in advance
PS: I am using PHP Laravel Framework.
You can use Omnipay to do via Paypal: https://github.com/adrianmacneil/omnipay
Your steps 2 and 3 are covered, for PayPal and many other payment gatways.
But if you are on US or UK, you should think about using Stripe as payment gateway. It's what Laracasts (by Jeffrey Way) and Userscape (Taylor's company) is using. It's very easy.
Stripe documentation is awsome and there are some stuff written about this, screencasts, like this one: http://www.screenr.com/d3v8 (for Laravel 3, but you'll get the idea) and Composer packages, like those:
http://packalyst.com/packages/package/mosey/stripe
https://github.com/Abodeo/laravel-stripe
Good luck!

A comprehensive list of PayPals APIs and their intended usage?

At my current company I have inherited an undocumented PayPal integration. As far as I can tell it uses a part of PayPal called the "PayPal checkout". This is similar but different than the PayPal IPN API.
After scouring the PayPal documentation I am still finding obscure pages talking about new APIs. Does anybody know of a clear, concise, sane list of PayPal's APIs and their intended usage?
check http://www.programmableweb.com/api/paypal

Need Hosted Payment Solution (Almost Seamless)

I'm looking for a hosted payment solution that can be made to work almost the same as a seamless payment solution, but I want hosted so I don't need to deal with the PCI compliance requirements.
I am currently using PayPal Website Payments Pro with the iFrame integration, its ok, but the problem is PayPal keeps pushing payments via 'PayPal' and you are unable to remove their stupid 'Pay with PayPal' button from the iFrame. Also there is no ability to customise the look of the content in the iFrame.
I came across CRE Secure's solution which was very clever: http://www.cresecure.com/pages.php?CDpath=3_63&osCsid=eam649uio10ug8igep1kgljgg0, however, they don't support AUD currency.
I would still prefer to use PayPal as my merchant gateway since it saves a lot of money from having a gateway + merchant bank account. For example the CRE Secure solution still hooks up the PayPal Website Payments Pro.
What solutions are there that allows me to have more ability to customise the content in the iFrame and doesn't have any branding of the payment provider, e.g. PayPal etc.
I know that Authorize.Net is one of the more popular services that offers these services.
Disclaimer: I work for Recurly.
Take a look at our product. We offer a fully hosted solution that you can embed on your site (although not recommended). We also offer a feature called Recurly.js (js.recurly.com) that you can fully embed on your site and own the experience, while still maintaining minimal PCI requirements. You can continue using PayPal as your gateway with our solution.
To keep this answer from being total spam (!), I'll also advise you to take a look at Samurai by Fee Fighters and Chargify. Let me know if you have questions, I'm happy to help :)
This is more a comment than an answer but I don't have the rep to comment.
Just found this is the docs
"This template also offers the following options:
Remove the Pay with PayPal button. Although the form offers the option to pay using
PayPal account by default, you can contact your account manager or customer support to
turn this option off."
So it seems you can remove the paypal button. Can anyone comment as to whether existing paypal customers will be able to use this gateway?