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.
Related
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.
It is my intention to integrate payment processing/subscription billing plans into a site using PHP and Javascript. I'd like to use PayPal to process credit/debit and PayPal charges. I read an article that said (Paraphrasing)
Normally you have to forward users to PayPal where they input their
billing information. PayPal Payments Pro allows you to process billing
info directly from your site.
I've also seen information to the contrary. This answer for instance. Also, the PayPal API docs don't say anything about needing Payments Pro to process a card directly from my site. Here you can see a card being processed without sending the user to PayPal under "Create billing agreement (credit card)."
I have a PayPal business account. I was able to generate a PayPal API Signature (API creds). Can I use the code shown in that quick start to process payment methods without applying for Payments Pro? I'm not talking about IPN. I know that anyone can use that.
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.
I am trying to integrate Stripe on a Symfony2 project, and the only payment method I see on their documentation is the "Pay with card" button https://stripe.com/docs/checkout which creates an embedded popup on my project. But the problem is that I need the users to insert their credit card number on Stripe's website, just like Paypal does. Is there any payment method that Stripe provides, and get all the user's informations from a form that is on their website?
Thank you.
Stripe doesn't offer a redirection to its site to collect card details. (source)
In most instances, buyers don't even know they're using Stripe to pay.
To collect card details and turn them into a token, you can either:
use Checkout, a premade form with some customization options, or
make your own form using Stripe.js.
If neither of these is an option for you, you can check the list of Stripe third-party integrations to see if something fits your needs.
This is now possible.
Stripe customers are now able to use Client-only Checkout feature which is currently in beta. Flow is the same as with PayPal - users will be redirected to Stripe-hosted checkout website.
Directing customers to Stripe to make payments online
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.