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] Credit Card button in-line form, incorrect card number produces no error for user. #627

Open
UtopieStudio opened this issue Feb 22, 2025 · 0 comments

Comments

@UtopieStudio
Copy link

UtopieStudio commented Feb 22, 2025

Library used

paypal-js, (https://www.paypal.com/sdk/js)

🐞 Describe the Bug

When incorrect card number is entered (on "Pay by Credit Card" button in-line form) and form submitted, user sees no error on the form, but console does output error.

🔬 Minimal Reproduction

In sandbox, enter test CC number incorrectly (i.e. 4111 1111 1111 1112 - last digit is incorrect), all other details as correct for sandbox test.
Press Pay button - console logs errors but user receives no feedback.

😕 Actual Behavior

What user sees after form submit:
Image

console output errors:

scf_fetch_credit_form_submit_error {handledErrors: Array(0), unhandledErrors: Array(1), timestamp: '1740224576065', component: 'xo-card-fields', app_name: 'standardcardfields', …}
scf_unhandled_error_on_submit_OAS_VALIDATION_ERROR {errors: '{"data":[{"code":"VALIDATION_ERROR"}],"message":"O…"],"meta":{},"contingency":true,"statusCode":200}', timestamp: '1740224576065', component: 'xo-card-fields', app_name: 'standardcardfields', token: '3HT495919D193080F', …}

🤔 Expected Behavior

The user should receive an error about incorrect card number.

🌍 Environment

  • OS: Win 10
  • Browser: Firefox / Brave

➕ Additional Context

None.

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