paypal customize checkout page which use paypal payment only - php

I want to include paypal checkout without leaving website i develop for a client. i'm using the developer account. what paypal option or api do i need to use here? (there are so many api's which confuses me)
and also i need to customize the checkout page style and look, so that users can only pay through paypal accounts (not enter credit card details).
i have reviewed the following questions but couldn't find a proper solution..
stack overflow question

Here is a similar question to yours:
From Stack PayPal Redirection
You cannot use PayPal Standard and stay on your website. You either need to get setup with PayPal Payments Advanced or PayPal Payments Pro.
Using PayPal Payments Advanced you can use an iFrame that uses the PayPal Hosted Page while giving the appearance of staying on your website.
Here is the getting started guide:
PayPal Payments Advanced Getting Started Guide

Related

Accept PayPal payment using only credit card with Omnipay (PHP)

I integrated OmniPay in my project few days ago, and I wondered if there is any option coming with it to actually enable credit card payments.
https://github.com/thephpleague/omnipay
I want to understand how to enable the PayPal credit card payments (which do not require an paypal account) using it.
What PayPal API settings should I enable?
How can I code this?
Is there any option to do this using PayPal & PHP at all ?
I tried to document myself on this and I couldn't find any answer to this question. Neither on the https://github.com/thephpleague/omnipay nor on Stack.
The setting mentioned in comments, 'PayPal Account Optional' exists so you have the ability to only accept payments from people with an account (when set to 'No').
If set to 'Yes', payments without an account can be possible. But whether the option will be offered to a particular payer in a particular PayPal checkout attempt depends on very many factors, which you do not control.
The only way to have some guarantee of a guest method being offered is to show a credit card form on your own site, before the buyer reaches a PayPal.com page, using the black 'Debit or Credit Card' button that is part of the JS SDK. You can see an example demo here: https://developer.paypal.com/demo/checkout/#/pattern/server
That JS code used for payer approval can be paired with any backend to create and capture the order via API -- including Omnipay, which essentially acts as a proxy for the PayPal API. This JS replaces any redirect over to PayPal which you might be familiar with from oler legacy integrations; the JS SDK is a more modern way to get the payer's approval, via a small in-context window or open a credit card form iframe instead which is a better UX than redirecting away anyway.

how to use paypal payments pro with users Paypal details

I am developing a payment integration using paypal payments pro using PHP/cURL. The user requires that as well as being able to pay by credit card (which I have implemented and it works by posting the following list of fields: "PARTNER=PayPalUK&VENDOR=HGGQ357J8T&USER=GLD7VF48TH&PWD=D84YDSPXFRA6HK54&TENDER=$tender&TRXTYPE=S&CURRENCYCODE=GPB&AMT=$AMT&CREDITCARDTYPE=$card_type&NAMEONCARD=$name_on_card&ACCT=$card_number&CVV2=$csc&EXPDATE=$expiryDate&ISSUENUMBER=$ISSUENUMBER&COMMENT1=$name_on_card&BILLTOFIRSTNAME=$name_on_card&SECURETOKEN=$SECURETOKEN&SECURETOKENID=$SECURETOKENID") he needs to allow users to be able to pay by entering their paypal login details instead of their card details) I have searched the developers documentation and the only piece of information I can find is that the tender parameter needs to be set to "P". Is the documentation available anywhere? I Assume their must be required fields for users paypal details but what are they called?
What you are using now is called Payments Pro. What are you looking for to enable PayPal payments is Express Checkout.
This PayPal PHP SDK will make the Express Checkout API calls very quick and easy for you.
The calls you'll be working with are SetExpressCheckout, GetExpressCheckoutDetails, DoExpressCheckoutPayment. The SDK includes functional samples for each of those as well as empty templates as good starter files.
You can just open those up and fill in your own values to all of the parameters that are setup for you and it'll handle the rest.

paypal chained payments on my website

I have no experience in integrating Paypal, so I'm sorry if my questions seems a little bit odd..
I have tried for the last 48 hours to read Paypal API docs, but I can't figure out how to achieve what I'm looking for:
I want to use the chained payment option on my website,
but I don't want to host the purchase form etc on my website,
I want to put a purchase button that will redirect to paypal's payment page, where there will be two options:
- Pay with Paypal account
- Pay with credit card
can anyone reference me to what should I do?
thanks..
Read through the Adaptive Payments developer guide, and then take a look at the Pay API specifically.

Using paypal on custom website and accept credit / debit Card

I have an issue right now that is killing me, I have implemented several payment options but never used paypal, I don't know why is it so complicated.
The website already exists and wasn't developed by myself.
I don't know the ammount of the order it is dynamic, so the "create payment buttons" on the paypal website doesn't work for me, at this point i developed a solution using
PayPal developers
But it turns out that i only have the option to pay with a PayPal account or register a PayPal account, I do not want to force customers to do this, it has no sense. is there any relatively easy solution out there using the same PayPal API?
EDIT
The whole site code is in PHP so i need the solution in this language
As you have mentioned that you are aware of one payment method i.e. Express Checkout ( in which user needs to have a valid Paypal account) so the other method which I think you need is the Direct Payment (i.e. a user can pay with credit cards directly without any Paypal account) API.
For this direct payment api you need to enable Website Payment Pro WPP , here you can get info about WPP.

Integrating Paypal chained payment and direct payment?

I want to Use the Paypal API for chained payment (adaptive payment), but i wan't that the user will not get out from my site, so I need to use the DoDirectPayment also...
Is it possible to integrate them both?
I couldn't found the answer for this question...
Thanks.
They both are part of two different API suites from PayPal. The chained payment is from Adaptive Payments API and DoDirectPayment is from PayPal Payments Pro (Direct edition). So make sure you sign up for them as required.
As Prash mentioned, for chained payments w/ PayPal accounts you must redirect to PayPal. But instead of using full browser redirect - you can use the Embedded Payments experience that uses iframe/mini-browser window that provides a more contextual experience to your users.
The user must leave your site in order to login to PayPal, however they are redirected back to your site afterwards where you can process the payment.

Categories