PayPal express checkout integration - paypal

I'm sitting and digging in PayPal documentation but it is very unclear. I need to make server integration and in payment function of paypal.Button.render there is CREATE_PAYMEN_URL but I have no idea what should be in it? There are no php examples in PayPal docs.

Related

Integrating PayPal's PHP REST API SDK, still a good idea?

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

Is Paypal Adaptive Payment API depreached

We are researching a way to automatically pay the developers of e-commerce modules we sell on our web shop. A lot of reading suggest the Paypal Adaptive Parallel Payment should be the solution. But Paypal developer docs seem to say that this API is now restricted and no option. If so, is there a new API from Paypal. The Braintree marketplace is no option for us in Europe
Express Checkout supports parallel payments as well -- https://developer.paypal.com/docs/classic/express-checkout/ht_ec-parallelPayments/
Actually Adaptive Payments are still supported now. You may try access below page to apply for an APP ID. If your application is approved, you may still continue integrate with Adaptive Payments.
https://www.paypal-apps.com/user/my-account/applications

Is Recurring Payments Profile with Express Checkout available?

I am investigating the recurring payment for paypal. looks express checkout is we we needed. but the document page https://developer.paypal.com/docs/classic/express-checkout/ht_ec-recurringPaymentProfile-curl-etc/ is under Express Checkout - NVP/SOAP (Deprecated).
And this page(https://developer.paypal.com/docs/classic/express-checkout/) said:
Important: This integration method is Deprecated as of January 1, 2017. For new integrations, see the PayPal Express Checkout Integration Guide.
new page doesn't say anything about recurring.
Is recurring payments still available for paypal express checkout?
They are trying to move away from the Classic APIs, which is why they're labeling them as deprecated now, but they aren't going away any time soon. There are still way too many people and apps integrated with Classic, and you can still build new apps with those APIs, too. I still prefer Classic over REST myself.
For the REST API you can take a look at Billing Agreements and/or Billing Plans.
If you purely created Express Checkout (without having additional API call), you are advise to integrate with Express Checkout v4 which located here. But if you wanted to Creates with Recurring Payment, the option is still available. PayPal does not finalize yet the date of deprecation application for Express Checkout.

Integrating paypal recurring

I am new to PayPal integrating and need to integrate PayPal recurring for subscriptions. I googled for that, but I am confused with below questions.
Which API should I use with PayPal recurring, WPS or Paypal express checkout? Which one will be good?
Is there any good example or help to integrate this?
Thanks a ton in advance.
Good overview of recurring payments: Handling recurring payments
I'm using the Lionite PHP Paypal class. It's not free, but even if you're not going to use it, read through that page because it contains some useful info that is omitted from the Paypal docs.
If I understand correctly, Express Checkout requires your customer to set up a Paypal account, so Website Payments Standard would be a better option.
Unfortunately the Paypal SDK only has code examples for direct payment. If you want to use Website Payments Pro with Direct Payment, be aware of PCI compliance (which can be expensive and time-consuming) and also be aware that services like BrainTree exist which have transparent redirect, thus helping you to avoid PCI compliance (I haven't used this service however).
Express checkout code example: https://github.com/hrendoh/PayPal-Recurring-Payment-example
Set up your sandbox account at http://developer.paypal.com
Update: IPN for recurring payments is a nightmare. Not only are the recurring payment IPN responses completely undocumented, but none of the support staff I talked to had a clue about them either (in some cases they gave me incorrect answers to questions). Here is a list that others have put together, but all of these resources are incomplete:
https://www.x.com/developers/community/blogs/ppmacole/recurring-payments-ipns?page=1
http://docs.ipn-easy.com/html/T_Rolosoft_IpnEasy_Net_PayPal_TxnType.htm
Unfortunately because of the limits placed on recurring payments with express checkout, direct payment was the only option for me. I strongly suggest that if you need to do direct payment with recurring payments that you find a different payment provider.

Use PayPal to execute payments inside own website

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