Open ivanwidj opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Thanks for flagging this! We've added it to our roadmap to trim whitespaces from emails before returning them
Hi there! Any updates on this @martinalong-stripe?
Any update on this bug @martinalong-stripe? also please let me know if this bug is more appropriate to be raised on https://github.com/stripe/stripe-js instead
Hey @ivanwidj -- no update to share here but I would suggest writing in to support as well, describing this problem, sharing a link to this issue and ideally including examples of failed payments/PM creation requests as a result.
Support: https://support.stripe.com/contact
This way we can associate your Stripe account to our internal record of the issue for any follow ups.
What happened?
When using
PaymentRequest
to handle apple/google pay integration, createpayment_method
(POST
v1/payment_methods
) might fail if the email address from the wallet account is invalid (e.g. having trailing whitespacestest@mail.com
).Though these kind of emails seem to have already been caught/handled on newly created wallet accounts, in live/prod scenarios a small percentage of old accounts still have email addresses with trailing whitespaces.
A proposed solution is to trim trailing whitespaces from email address value before using it on
billing_details.email
when creating payment method withinPaymentRequest
flowEnvironment
No response
Reproduction
No response