Paypal sometimes popup or inline when the black Debit/Credit button is clicked - paypal

I'm new to payment integration using Paypal. I enabled the card to accept payments to both debit and credit card. I set the locale to Germany and intent=capture. When clicking the Debit/Credit Card black button, only the form for Credit Card is available and there's not an option to pay using Debit Card.
Based on the what I tested here
https://developer.paypal.com/demo/checkout/#/pattern/responsive.
The payment through debit will be available when there's a popup.
The popup is showing only if i click really fast on "black credit/debit cart" before it ends the animation where the text (Debit or Credit Card) appears. If I clicked late, it will show a form below the button that only accepts Credit Card payment.
Is there a way to force the behavior to popup a new window when Debit/Credit Card black button is clicked? This way, both debit and credit payment will be accepted.

The Debit or Credit Card button will always open a form when available, and only fall back to a popup when there is an error or it is not available.
The only button that will always open a popup is the yellow PayPal one.

Related

How to show "Pay with a debit or credit card" button instead of "Checkout as Guest" on PayPal guest payment

I have a project with a PayPal integration. On this, I have enabled the 'guest checkout option' in my PayPal account(U.S Account) for customers paying on my website. I need to show the "Pay with Debit or Credit Card" button always when a user opens the PayPal login page. But sometimes it showing the "Checkout as Guest" button instead of the "Pay with Debit or Credit Card" button.
How can I show the "Pay with Debit or Credit Card" button always? Does this have any relation with the browser cookie?
You cannot control the behavior of the PayPal page. The behavior presented depends on very many factors--including, for example, the location of the buyer or repeated checkout attempts--and so is case by case. Sometimes the option to check out as a guest will not be available, at all.
If you want to always present a debit or credit card option, you should follow the Set up standard payments guide, which gives a black 'Debit or Credit Card' button.
If you have a server backend that can do API calls, then you should create two routes, one for 'Create Order' and one for 'Capture Order' documented here -- and pair your two routes with the server approval flow.

PayPal smart buttons, how to always open the credit card in a new tab?

I use PayPal smart buttons for integrating payments into a website, following this live demo
I have two problems with the "Debit or Credit Card" button:
It is not always working, when I click on it, the fields are expanding and shown on the same page (my server) and after entering all the info and click "Pay Now" I get message saying "Something went wrong, we will take you back to checkout so you can try again" when I click on "Try again" button a new tab opens for processing the credit card payment on PayPal server (now it will work).
this happens ~50% of the time.
It is related to the first one, the first view (when fields expanding on my site page) it lacks the address fields however they are shown after clicking "Try again" and go to the PayPal tab.
So my question is, can I unify the way that the credit card payment view is shown? Is there a parameter that I can pass while rendering the buttons that makes it always open in a new tab?
The message "Something went wrong, we will take you back to checkout so you can try again" will happen when there is a decline. As you are apparently testing payments yourself, you can expect many such intentional declines by PayPal. They aren't considered a technical or integration problem, but the system behaving as designed.
There is no way to make the black Debit or Credit Card button open a new window. You can disable it if you don't want it, but you can't make it behave differently.
When there is an error or decline using that Debit or Credit Card path, and you click "Try again", it is the same as using the top PayPal button. That is the fallback path.

PayPal credit card button hides PayPal standard button

We are using PayPal with the default button and with visa and MasterCard buttons. When we click on a credit card button the default PayPal button is hidden. Is there a way to avoid this? We don't want that user has to refresh the page to see again the choice for PayPal payment method.
Thanks
There is no way to avoid it, PayPal is intentionally making use of that screen real estate.
You could allow the user to trigger a .close() of the PayPal button (save a reference to it before you .render()) and so then create a fresh one in its place, if you really want to avoid them having to do a page refresh.

PayPal Buy Now Button - Pre-populate Credit Card

Is there any way to make the Buy Now page open up the credit card form straight away.
Currently it's buried underneath the "pay with paypal" option that hardly any of my customers want to use. They have to click the tab at the bottom right. It's a very very poorly designed page and plays havoc with my conversion rates.
Could I for example pre-populate the credit card details in my buy now button so that the credit card form would come up initially?
With buttons it is not possible as the form is hosted by PayPal. You may want to look into other integration methods at https://developer.paypal.com/docs/api/ where you host the form that holds payment info.
See this for an example
https://developer.paypal.com/docs/api/#create-a-payment

Paypal donate via credit card link

I have a non profit website that I put a donate button on that works fine.
But there are some older people who do not have a paypal account. If you hit the donate LINK and the continue, it takes you to a credit card input screen. They don't see the continue link.
Is there a way to link directly to that page, passing my hosted_button_id ?
So I want to make a second link on my website that if they have no paypal account. It takes them directly to the credit card screen.
Thank You