feat: payment element styles on "Add payment method" page #8413
Labels
focus: checkout payments
priority: medium
The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability
type: enhancement
The issue is a request for an enhancement.
Description
When the payment element is rendered at checkout, we use pass some styles to Stripe. These styles are auto-generated based on the site's look & feel.
The payment element is also rendered on the "Add payment method" page, in the customer's "My account" pages.
If styles have been previously calculated at checkout, those styles will be used by the "My account" page.
However, if no styles are present (e.g.: because the nonce used as cache expired), the default payment element styles will be used.
It would be great to ensure that the styles on the "my account" page could also be auto-generated.
Acceptance criteria
Designs
N/A
Testing instructions
Dev notes
Using a separate nonce/cache for the "my account" page would likely be beneficial, rather than reusing the one from checkout.
Additional context
This issue has been highlighted after working on #8383
The text was updated successfully, but these errors were encountered: