kylerc
Well-known member
- Affected version
- 2.0.1
Hello,
We found an issue with payment modals for user upgrades using Stripe in UI.X. It would appear that the style data is not being correctly processed to initialize a Stripe paid user upgrade. Specifically the
Notice the unescaped quotes around fonts and the
We found an issue with payment modals for user upgrades using Stripe in UI.X. It would appear that the style data is not being correctly processed to initialize a Stripe paid user upgrade. Specifically the
JSON.parse
on payment.js line 510
is able to receiving the following from UI.X style properties:
JSON:
{
"base": {
"color": "xf-intensify(rgb(249, 250, 250), 87%)",
"fontFamily": ""Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif",
"fontSize": "16px",
"lineHeight": "1.4"
},
"invalid": {
"color": "#c84448"
}
}
Notice the unescaped quotes around fonts and the
xf-intensify(rgb(249, 250, 250), 87%)
color not being processed through LESS. I haven't looked into this further to see if other values are also not being parsed, but the lack of parsing renders Stripe user upgrades inoperable since the modal is no longer interactive.