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

Credit Card is not enabled, but appears sometimes in the widget #286

Open
staneque opened this issue Apr 11, 2024 · 0 comments
Open

Credit Card is not enabled, but appears sometimes in the widget #286

staneque opened this issue Apr 11, 2024 · 0 comments

Comments

@staneque
Copy link

Hi, we use Hyperswitch widget instance in our mini-cart with a separate business profile where only wallets like Paypal and Google pay are connected. But sometimes (and it happens only sometimes, like let's say once in 5 page refreshes or so) the Credit Card widget is also being loaded, which we really don't need there and would want to avoid.
Screenshot 2024-04-08 at 14 50 26

Currently I workaround this by disabling the whole accordion with css .AccordionContainer, which is not really a solution and we still have the "Or pay using" title which looks weird and out of context.

the shoshowCardFormByDefault option is set to false, but I'm not sure is it relevant at all. The basic settings look like this:

export const unifiedCheckoutOptions = {
  wallets: {
    walletReturnUrl: HYPER_RETURN_URL
  },
  layout: {
    type: "accordion",
    defaultCollapsed: true,
    radios: false,
    spacedAccordionItems: false
  },
  paymentMethodsHeaderText: "",
  paymentMethodOrder: ["paypal", "apple_pay", "google_pay"],
  showCardFormByDefault: false,
  branding: "never"
};

What could be the root cause of the issue and is there a way to disable the credit card completely?

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

1 participant