{"section":"known-issues","requestedLocale":"en","requestedSlug":"checkout-ui-shows-login-to-view-credits-when-provider-returns-balance0","locale":"en","slug":"checkout-ui-shows-login-to-view-credits-when-provider-returns-balance0","path":"docs/en/known-issues/Checkout/checkout-ui-shows-login-to-view-credits-when-provider-returns-balance0.md","branch":"main","content":"## Summary\n\n\nIn the Checkout Payment UI, when the gift card provider returns a response with balance=0, as described in our documentation, the UI continues to show the banner prompting asking the shopper to log in to view credits and does not render the gift card component, even after a successful login.\n\nThe visible symptom is a static UI that never shows credits and behaves as if the user is not authenticated. This affects shoppers in stores integrated with providers that return balance=0 for zero-credit users.\n\n\n#### Simulation\n\n\nPrerequisites: Store using a Gift Card provider that, for a logged-in user with no credits, returns a “balance: 0” payload rather than an empty array [] for List Gift Cards.\n\nSteps:\n\n1. Add any product to cart and go to Checkout.\n2. In the payment step, click the banner “You have credits to use on your purchase! Do you want to display them?”.\n3. Authenticate as prompted (e.g., via code login) and wait for the credits panel to render.\n4. Observe that the UI continues to show the login prompt and does not render the gift card component, despite the user being logged in and the provider returning balance=0.\n\n\n#### Workaround\n\n\nThe possible workaround is the Gift Card provider to return an empty array [] when the user has no credits."}