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, lower-case postcodes trigger error #626

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

Comments

@UtopieStudio
Copy link

Library used

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

🐞 Describe the Bug

Form input/submit error if user enters lower-case postcode (i.e p17 7bd, instead of P17 7BD)

🔬 Minimal Reproduction

Enter lower-case postcode, tab out, field error shown. On submit, console errors output.

😕 Actual Behavior

Lower-case postcode shows user form error message "enter a valid zip code". A non-existent - lower or upper-case - postcode error says "please enter a valid postcode".

app.8c25db1a1546298ad55e.js:2 scf_fetch_credit_form_submit_error {handledErrors: Array(1), unhandledErrors: Array(0), timestamp: '1740223425089', component: 'xo-card-fields', app_name: 'standardcardfields', …}
app.8c25db1a1546298ad55e.js:2 scf_recoverable_billing_address_field_error_on_submit {error_message: 'Enter a valid ZIP code', timestamp: '1740223425089', component: 'xo-card-fields', app_name: 'standardcardfields', token: '3HT495919D193080F', …}

🤔 Expected Behavior

API should handle lower case postcode entries more elegantly without needing to alert the user with an error. Current error is not descriptive confusing the user why postcode is not correct.

🌍 Environment

  • OS: - Win 10
  • Browser: latest 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