question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to disable the new "Standard Card Fields" behavior in my PayPal Smart buttons integration

See original GitHub issue

Description

The recent updates on PayPal Smart Buttons have introduced a new feature called “Standard Card Fields”. So now, if a user tries to make a payment with a card, it renders an iframe to collect card and billing info of customer inline on the page instead of a guest checkout popup. However, there is no way to change the appearance/style of the card form to match with the rest of my checkout form and the behavior is inconsistent since, for some, it still opens up in a guess checkout modal.

What I want is a way to disable the standard card fields and this new inline behavior and want my integration to follow the old behavior which opens up a guest checkout modal on clicking on a card option. Looking at the sample code here https://developer.paypal.com/docs/checkout/integration-features/standard-card-fields/#best-practices, there is a parameter passed enableStandardCardFields: true, and I have tried to pass it has enableStandardCardFields: false, but it still follow the new inline checkout behavior.

Please lemme know if there is a way to completely disable this new behavior without disabling the card options itself–I don’t want to disable the card options but wanna keep the old guest checkout behavior for card payments until there comes a way to style the checkout fields to match rest of my form.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13

github_iconTop GitHub Comments

6reactions
marcomarsalacommented, Apr 15, 2020

I switched to Stripe to solve this issue

1reaction
kishan93commented, Feb 24, 2021

not sure if anyone still having this issue, but I was able to fix it by adding

paypal.Buttons({
    fundingSource: paypal.FUNDING.PAYPAL
})

ref: https://developer.paypal.com/docs/checkout/integration-features/standalone-buttons/#render-a-set-of-buttons

Read more comments on GitHub >

github_iconTop Results From Across the Web

Standard Card Fields - PayPal Developer
Standard Cards Fields display in a vertical Smart Payment Buttons integration. JavaScript parameters in your integration override merchant account settings.
Read more >
PayPal smart buttons, how to always open the credit card in a ...
There is no way to make the black Debit or Credit Card button open a new window. You can disable it if you...
Read more >
Disable PayPal Checkout Button using Smart Button Integration
You can quickly remove paypal yellow button from paypal smart buttons.TRY SHOPIFY FOR 14 DAYS FREE:▻ ...
Read more >
WooCommerce PayPal Payments Requiring Address
The user first needs to provide the address information in the WooCommerce checkout fields before an order can be placed with the “Place...
Read more >
PayPal Checkout - WooCommerce
Advanced Settings · Check the Enable Logging when troubleshooting issues with your site. · Enter an Invoice Prefix to identify transaction from this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found