Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Highlight incompatible payment gateways in the C&C Blocks #7855

Closed
tarhi-saad opened this issue Dec 6, 2022 · 1 comment · Fixed by #7412
Closed

Highlight incompatible payment gateways in the C&C Blocks #7855

tarhi-saad opened this issue Dec 6, 2022 · 1 comment · Fixed by #7412
Assignees
Labels
block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. type: compatibility type: enhancement The issue is a request for an enhancement.

Comments

@tarhi-saad
Copy link
Contributor

tarhi-saad commented Dec 6, 2022

Current behavior

Currently, while using our Blocks, the shopper is not warned whether one of his payment gateways is incompatible with the C&C Blocks. Without any explanation, he will only notice that his payment gateway is missing if he checks the Checkout Block page on the front end. This can cause confusion and frustration!

Expected behavior

Based on the results from the research spike: pdFofs-mB-p2, we decided to start implementing detecting payment gateways in the C&C Blocks and showing a notice for it:

  • Implement the logic for detecting payment gateways in the C&C Blocks editor pages
  • Show a notice at the top on the settings sidebar with the list of incompatible gateways (The design is available here: pca54o-4Hm-p2#comment-4760)
  • Hide the Update page settings notice while the notification for incompatible payment gateways is visible.
  • Hide the general incompatibility notice in favor of these more useful contextual notices. When the user dismisses it, we can show it again if it was not dismissed.
  • Capitalizing the label for the button on the page settings notification (see image):

Screenshots

Current:

image
Expected:

image
@tarhi-saad tarhi-saad added type: enhancement The issue is a request for an enhancement. block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. type: compatibility labels Dec 6, 2022
@tarhi-saad tarhi-saad self-assigned this Dec 6, 2022
@elizaan36
Copy link

hey @tarhi-saad 👋 Just updated the screenshot above and commented on #7412 with a small tweak to the placement of the icon. This is to align with usage of the WP notice component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. type: compatibility type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants