Payment with Paypal and other credit card options - php

I am using paypal payment system for users subscription on monthly basis. All the things and flow working perfect. I need to know when user click on button and navigate to paypal site its show only pay with you paypal account or create account (pay with credit card) as shown figure
I didn't see image like credit card option as shown in figure below.
I'm using Digital Goods Example find on this link
https://github.com/thenbrent/paypal-digital-goods
In this example its uses SetExpressCheckout method and recurring user profile.
Its their any option or setting to enable in paypal business profile or paypal api to do that credit card payment option for users.

You have to have a Premier or Business account with PayPal before the option for credit card payment will show up.
If you already have a Premier or Business account, you probably have the relevant setting turned off. Go to Profile -> Selling Preferences -> Website Payment Preferences and look for "PayPal Account Optional." Make sure that box is checked.
If you can't find the box, click through lots of links for a while. PayPal enjoys rearranging their website a lot.
P.S.: If you are using Sandbox mode, it won't show up. You have to be using the real Express Checkout.

It works fine if you add these parameters when you call setExpressCheckout method:
SOLUTIONTYPE ="Sole"
Note: PayPal Account Optional should ON at sellers account.

Related

How to enable pay with credit/debit card option in paypal live integration using Codeigniter?

I am developing ecommerce site using codeigniter framework and working with paypal payment gateway while working with test account when click on checkout button it is redirecting to https://www.sandbox.paypal.com/webapps/hermes?token=2UB83487A75855947&useraction=commit&rm=2&mfid=1529919438421_bd8c62ee560a7
and it will display pay with debit/credit card options like below
but same thing when working with live account and sandbox option is set to false
$config['sandbox'] = FALSE; // FALSE for live environment
but while when click on checkout button it is redirecting to
https://www.paypal.com/webapps/hermes?token=8XV68932HS353772W&useraction=commit&rm=2&mfid=1529919464344_76e5b0f4b8fe4
and it is not displaying pay with credit/debit card options
It's not a Codeigniter issue, it's just that when you're using the sandbox account, it contains all the options which paypal provides but when you're on live the Paypal may not support Pay with debit card to your country.
Second, login to Marchant paypal account and go to setting and make sure that you have enabled to accept credit/debit card.

Paypal getting option payment through credit card(PHP)

Hi i am getting two options while integrating the paypal with my PHP code
1. Pay via paypal
2. Create a paypal account
Whereas i Need an option Of
Payment through Debit/Credit Card
How can i get that,,
i reffer to thisThis Link But unable to find the paypal profile and more options option, Can anyone help me
The only way to force Guest Checkout (which is what PayPal calls it when somebody uses a credit card from their checkout pages without signing in to a PayPal account) is to use the Express Checkout APIs.
This will allow you to set parameters that provide the Guest Checkout experience in all instances where it's available. Keep in mind that even with this configured correctly, Guest Checkout is simply not available for all buyers in all countries, so you still won't get it for 100% of your customers if you're selling world wide.
Guest Checkout is available in PayPal Standard Payments, too, but it's cookie based, so it's very unreliable. If the browser in use has ever had anybody sign in to a PayPal account then it will assume the current user will be signing in, too, and it will not prominently display the Guest Checkout option. This is what you are able to avoid by using the Express Checkout APIs.
This PayPal PHP SDK will make the Express Checkout calls very quick and easy for you. Specifically, you'll be working with:
SetExpressCheckout
GetExpressCheckoutDetails
DoExpressCheckoutPayment
In your SetExpressCheckout request you'll make sure to include the follow parameters:
SOLUTIONTYPE=Sole
LANDINGPAGE=Billing
USERSELECTEDFUNDINGSOURCE=CreditCard
This will ensure that the user sees the Guest Checkout experience.
Direct processing of Credit Cards is deprecated.
But people can pay without PayPal account - it's called guest payments.
Use the PayPal API and allow the optimal checkout to YES and then customers can pay either through credit card / paypal account.
https://developer.paypal.com/docs/integration/direct/payments/guest-payments/#

Paypal Express Checkout - Pay without account

In my PayPal express checkout there's no way for customer to pay whithout PayPal account.
I've seen this post:
PayPal: express checkout pay without account
I've added &SOLUTIONTYPE=Sole&LANDINGPAGE=Billing to the expressChechout call, which is fine but it just opens the tab "New Customer".
Also PayPal Account Optional is On.
I have a PayPal Buisness account.
Is there a solution to this?
Thanks
Even though you pass SOLUTIONTYPE=Sole, LANDINGPAGE=Billing and USERSELECTEDFUNDINGSOURCE=CreditCard in SetExpressCheckout API call, some of your customers will still be forced to open a PayPal account in order to pay with a credit card and they will see the "New Customer" tab.
This is based on customer's country of origin, so you can't do anything about that. In order to pay with a credit card you will need to select a country. When you change the country in the payment form you'll see that some people can just pay with a credit card without a PayPal account, and some will see the "New Customer" tab and being forced to open a PayPal account.
There's a new parameter you need to include to handle this better. Make sure the API version you're setting is 109.0 or higher, and then add USERSELECTEDFUNDINGSOURCE=CreditCard

PayPal payment with credit cards

I have a problem with integration of paypal payment. I want to make it so that customers can't register to paypal, but paypal only shows the register to paypal.
I use php library. Is it possible that they add only credit card without registration?
If you're using Payments Standard, Express Checkout, Adaptive Payments, or anything that actually redirects the user over to PayPal then it would be done with "guest checkout", which is an option on that checkout screen. In order to make that work you would need to make sure the PayPal Account Optional setting is enabled in your PayPal profile.
If you go with Payments Advanced you would imbed an iframe in your site that PayPal actually hosts, and it would have the PayPal option as well as credit card option built in to that.
Payments Pro would give you full freedom to process credit cards directly via API request, and then you wouldn't have to display any PayPal logos or show that PayPal was involved at all in that case.
I would still recommend leaving PayPal as an option for people, though.
My site is actually is a good example. Notice if you add that item to the cart you'll see the option to "Pay with a Credit Card" or "Pay with PayPal". If you choose credit card that would move to a credit card form and would be processed through Payments Pro (PayFlow). If you choose PayPal it would go through Express Checkout. So you still give people both options, but it's very straight forward for non-PayPal users.
You can send money to anyone with an email address but in order to claim the funds they would have to open a PayPal account. What happens is that you send the money to their email address, they get an email letting them know they have received funds. They are then instructed to follow the directions to open an account to receive the funds into their PayPal balance. It is a very straightforward process and a new account can be set up very quickly. Thanks for your great question and I hope you have a great day.

PayPal checkout solution confusion

I am trying to figure out exactly what payment solution to use for my site.
I would like to do the same thing as Spotify (https://www.spotify.com/us/freetrial/ - You'll need to login to see it), allowing users to choose whether they want to pay with PayPal or use a credit card and then taking them to a payment selection screen (on PayPal), then returning them to my site to click confirm and buy.
I am already paying for recurring payments (even though I've yet to use it) and am unsure if that is applicable here. I have also integrated express checkout but I don't know if it will allow recurring payments.
EDIT: Do I need a separate token for recurring payments? Do I have to use the old recurring payments checkout screen? How can this be done as efficiently as possible, like Spotify? Here are my efforts to create a recurring payments profile after express checkout: http://pastie.org/private/sakzopltnwfv93wwmduqq
Diagram:
Select Buy & PayPal (subscription) --> Choose Payment (on PayPal) --> confirm & pay (my site)
This is what spotify's checkout looks like (It wouldn't say update for first time users):
Are they using recurring payments + express checkout? I would really appreciate some help with this.
Yes, you can get this done with Express Checkout + Recurring Payments. That said, if the person chooses credit card when setting up a recurring payment they will have to create a PayPal account. If they're paying a non-recurring checkout then they could use the credit card option without creating a PayPal account.
You mentioned that you're already paying for recurring payments..?? Are you referring to Payments Pro? If so, you don't need to pay for that to use EC + RP. Pro is only necessary if you want to process credit cards directly on your site without ever redirecting to PayPal. This can sometimes make things seem a little more professional and would also give you the ability to let people setup recurring payments without creating a PayPal account when using a credit card.
When using EC you just need to make sure to include the billing agreement parameters in order to get a token back that will work within CreateRecurringPaymentsProfile. Refer to the SetExpressCheckout API reference for more details on that.
This is kind of old now, but is still useful. Take a look at this sample express checkout set of api calls. You'll notice it uses the same token throughout all of the calls.
Just like Spotify -you would need to build that option on your site. If the user chooses to subscribe with a credit card - use the recurring payments w/ direct credit card (see below). If the user chooses to subscribe with a PayPal account - use the recurring payments w/ PayPal Account (this is what Andrew is suggesting above in his response).
Here are the how-to guides:
For direct credit card subscriptions: https://www.x.com/developers/paypal/documentation-tools/paypal-payments-pro/how-set-recurring-payments-profile-using-direct-payment
For PayPal Account subscriptions: https://www.x.com/developers/paypal/documentation-tools/express-checkout/how-to/ht_ec-recurringPaymentProfile-curl-etc
The APIs would allow you to do things like trial periods, setup fee, etc. For example here is a how to on building a freemium kind of model: https://www.x.com/developers/paypal/documentation-tools/express-checkout/how-to/ht_ec-freeTrialRecurringPayments-curl-etc

Categories