Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PayPal Credit button only shows if vault=true #577

Open
lmgroger opened this issue Nov 15, 2024 · 0 comments
Open

[Bug] PayPal Credit button only shows if vault=true #577

lmgroger opened this issue Nov 15, 2024 · 0 comments

Comments

@lmgroger
Copy link

Library used

paypal js

🐞 Describe the Bug

PayPal Credit button won't show unless vault=true

🔬 Minimal Reproduction

Javascript error: "credit is not eligible"

        <div id="paypal-button-container">
        <script src="https://www.paypal.com/sdk/js?client-id=test&buyer-country=US&currency=USD&components=buttons,messages"></script>
        <script type="text/javascript">
			paypal.Buttons({
				style: {
					shape: 'rect',
					size: 'small'
				},
				fundingSource: paypal.FUNDING.CREDIT
			}).render('#paypal-button-container');
        </script>

😕 Actual Behavior

PayPal Credit button is not rendering and creating javascript error "credit is not eligible"

🤔 Expected Behavior

I feel like PayPal Credit button should be shown without vault=false since it shows up as payment method for both vaulting and non-vaulting transactions (requestBillingAgreement)

🌍 Environment

  • Browser: Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant