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

Checkout flow is stripping characters from customer id #153

Open
msschwartz opened this issue Jan 24, 2024 · 2 comments
Open

Checkout flow is stripping characters from customer id #153

msschwartz opened this issue Jan 24, 2024 · 2 comments

Comments

@msschwartz
Copy link

msschwartz commented Jan 24, 2024

Pipe characters are being stripped from the customer id when using the checkout iframe. This does not happen with the iOS or Android SDK so pipe should be supported.

https://test.chargebee.com/hosted_pages/checkout?subscription_items%5Bitem_price_id%5D%5B0%5D=miamigrandprix23_web-USD&layout=in_app&customer%5Bid%5D=auth0%7Cxs8saf8sdf7asdf87&customer%5Bemail%5D=michael%40test.com&hp_opener=chargebee&hp_referrer=http%3A%2F%2Flocalhost%3A3000&layout=in_app
@cb-hasnainrizvi
Copy link

hi @msschwartz , can you please share code snippet for this and/or help us with more context ?

@msschwartz
Copy link
Author

msschwartz commented Dec 26, 2024

I don't believe any custom code was written for this. We are opening the hosted page with a prefilled email. Add the following parameter to a hosted page and you'll see the customer is saved with the wrong id.

customer[id]=auth0|xs8saf8sdf7asdf87

gets converted to the following when chargebee persists the customer:

customer[id]=auth0xs8saf8sdf7asdf87

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

2 participants