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

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/

Related

How do I obtain permission to process on behalf of a PayPal merchant using the PayPal REST API?

I would like my website to be able to process PayPal payments on behalf of merchants. The merchants will have their own PayPal accounts and will need to give me permission to do so.
Permissions API Deprecated
PayPal have a "Permissions API" which allows a third-party such as a hosted shopping cart to process on behalf of PayPal merchants. See: https://developer.paypal.com/docs/archive/permissions-service/integration-guide/PermissionsUsing/
The above page says:
Adaptive Accounts and Adaptive Payments are no longer available for
new integrations. PayPal provides documentation for these APIs to
support existing integrations.
PayPal REST API
Are these things possible using the PayPal REST API:
perform a handoff from my site to PayPal, have the merchant grant my site permissions to act on their behalf,
process payments on behalf of the merchant using the credentials obtained from the first step
Every merchant can obtain ClientID/Secret credentials from the Live tab of a REST API App via https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fapplications , and enter them into their config interface on your platform.
It's is possible to use the PayPal "Marketplaces and Platforms" API to achieve this:
https://developer.paypal.com/docs/platforms/seller-onboarding/

Can I use paypal express API if my registered account is paypal standard

When you register an account in paypal they will ask you what type of account you want to create. I choose business then there are 3 options to choose from.
Payments Pro
Paypal Standard
Paypal Express
I selected Paypal Standard.
Can I still use Paypal express API even if my account is paypal standard?
Thanks,
Defy
Yes, You can use PayPal Express Checkout. You just get the API credentials from your PayPal account and use those API credentials at express checkout integration.

Paypal Recurring payment API

Need a simple tutorial for Paypal Recurring payment using the latest REST API. On Dev site of paypal there is no such explanation for that.
"Recurring Payments" are referred to as "Billing Plans" in the documentation for REST API. https://developer.paypal.com/docs/integration/direct/create-billing-plan/

PayPal REST API equivalent of GetExpressCheckoutDetails

As far as I can tell, this doesn't exist yet, but I was wondering if anyone knew if there was an equivalent of the PayPal Payments Pro NVP call "GetExpressCheckoutDetails" in the new PayPal REST API.
The REST API documentation lists information on authorizing the sale and the redirect contains the token that would be used in Payments Pro but there's no docs on how to retrieve the Billing/Shipping info prior to executing the sale (after which I assume you can retrieve that information through the "Look up a payment resource" call of payments/payment/{id}
Tangential question in case PayPal official response comes in: Is recurring payment support coming to the REST API soon or will it be exclusive to PayPal Payments Pro?
You can look up a payment resource even before you execute it. However, we have a bug in the API that doesn't currently return the shipping information.

Paypal REST api and configuring direct payment page

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.