Paypal REST api and configuring direct payment page - paypal

With the paypal NVP api, we were able to set some options for the generated paypal checkout page using SetExpressCheckout. Is there a way to do the following with the new REST api?
NOSHIPPING to tell paypal that I don't need a shipping address.
LOCALECODE to set the gateway in the user's language.
HDRIMG to change the title of the page to a logo.
EMAIL to pre-populate the email in the gateway. NOTE: I've tried using $payerInfo->setEmail() but apparently this method is only for credit_card and not paypal requests.
SOLUTIONTYPE to set the billing info by default.
LANDINGPAGE to set the landing page.
I cannot find it in the paypal developer REST api docs.

Unfortunately not at this time. We are trying to implement a better mechanism to configure the payment experience than overloading the API calls. Until then please use the classic ExpressCheckout API if these are something that you really need.

Related

Paypal REST API and custom checkout pages

Does anyone know if it's possible to use a custom checkout page when doing Paypal REST API payments?
So far, I've not found anything, but the REST API is ever-evolving, but unfortunately still lacks some key components.
You can change the business name and the your company logo by creating the different "Experience Profiles" using REST API and passing the profile id in your Payment call . You can check the documentation here :
https://developer.paypal.com/webapps/developer/docs/api/#create-a-web-experience-profile
Apart from that you can change the business name from your PayPal account maunally by going to this url after logging in :
https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-business-info

Paypal Payment Standard via Paypal Rest API

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.

Paypal REST api - callback for shipping address

I'm trying to implement PayPal Express checkout for a client using the PayPal REST APIs (python-rest-api-sdk). One of the issues I have right now is presenting the correct shipping rate to the customer on the PayPal page based on the customer's shipping address.
The callback was easy to implement using the Classic APIs, but I'm not sure how to do this with the new REST api.
Any suggestions?

PayPal REST API with intent sale: Open credit card payment by default

I'm using the PayPal REST API to direct payers from our site to the PayPal site to make payment. It opens with the "Pay with my PayPal account" as the default option, can this be changed to default to "Pay with a debit or credit card"?
I've seen a couple of responses that have suggested using "LANDINGPAGE" but this seems to be only applicable with the Classic API not the REST API.
Is there a REST API equivalent?
Thanks.
Now the PayPal offers the similar functionality in the REST API also . You can check the below link for more information :
https://developer.paypal.com/webapps/developer/docs/integration/direct/rest-experience-overview/

How PayPal Rest API handling payment via Echeck?

I am hosting a service based website. I am allowing the User to pay via Paypal account but I want to restrict the User to pay via Echeck. I believe the classic API has some setting to block check payment but I didn't find anything regarding this in Rest API reference document.
If you're using Express Checkout, you can set PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD=InstantPaymentOnly to disable eChecks.
You must set payment options to "IMMEDIATE_PAY". Solution in PayPal JAVA Rest API:
PaymentOptions paymentOptions = new PaymentOptions();
paymentOptions.setAllowedPaymentMethod("IMMEDIATE_PAY");
Transaction transaction = new Transaction();
transaction.setPaymentOptions(paymentOptions);
...
Successfully removes eCheck option without further configuration.