You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When submitting separate first name and last name on the checkout then when the first name contains a hyphen "-" then after save the first name is blank the last name field contains the first name and last name.
Steps to reproduce
submit first name and last name separately
Make sure first name contains a hyphen "-" .e.g. "Chi-la".
Last name can be anything e.g. "Smith"
Submit the form.
Refresh and now the first name field is empty and the last name contains "Chi-la Smith"
Expected behavior
I would expect first name field contains "Chi-la" and last name contains "Smith.
WARNING! Stripe does not not support hyphen "-" in the name so perhaps better to output this:
First name: "Chi la"
Last name: "Smith
Alternatively strip the hyphen "-" from the stripe payment request generation.
I noticed this issue as a customer couldn't pay due to Stripe having a JS error. Uncaught (in promise) TypeError: paymentResponse.redirectData is undefined
due to no first name stored on the order.
What happened?
Description
When submitting separate first name and last name on the checkout then when the first name contains a hyphen "-" then after save the first name is blank the last name field contains the first name and last name.
Steps to reproduce
Expected behavior
I would expect first name field contains "Chi-la" and last name contains "Smith.
WARNING! Stripe does not not support hyphen "-" in the name so perhaps better to output this:
First name: "Chi la"
Last name: "Smith
Alternatively strip the hyphen "-" from the stripe payment request generation.
I noticed this issue as a customer couldn't pay due to Stripe having a JS error.
Uncaught (in promise) TypeError: paymentResponse.redirectData is undefined
due to no first name stored on the order.
Actual behavior
First name: (blank)
Last name: "Chi-la Smith"
Craft CMS version
4.8.10
Craft Commerce version
4.5.4
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions