-
Notifications
You must be signed in to change notification settings - Fork 207
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
Fix ECE button displayed on synced subscription variations #3686
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mayisha TIL synced subscriptions! 🙌
-
During testing, I found a flow that still displayed the ECE buttons even when synced variation is selected:
- Go to product page.
- Select Blue (synced).
- Notice ECE buttons disappear.
- Click "Sign up now" button.
- Notice page is reloaded, Blue is selected, and ECE buttons are visible.
-
Also, I don't quite get the reason -- why are we hiding ECE for synced subs? If "Due Today" is not 0.00 and if we allow payment via other payment methods, shouldn't we also allow payment via ECE?
Thanks @annemirasol for the feedback.
Good finding 👍 I totally missed this issue. I have fixed it in e680de2. The
We are hiding ECE for synced subs only on the product page. According to the
According to the function if you select |
@Mayisha I don't see the ECE buttons in the cart and checkout pages, when a synced sub is in the cart. Is this expected? (I can see them with the non-synced sub.)
Verified 👍 I see them if we're charging full amount. |
Upon checking the
This statement is actually for the virtual synced subscription only as per this comment and this condition. Note: I have referenced the lines from the function in the payment request class where the function was originally added. |
I see, thanks for clarifying that! Flow:
Maybe a |
Fixes #3607
Changes proposed in this Pull Request:
ECE buttons should be hidden if the subscription is synchronized. In variable subscriptions with synced and non-synced variations, ECE button still appears when switched to a synced variation. This PR fixes the issue by checking if
getSelectedProductData
response has an error.Testing instructions
develop
branch the ECE button is displayed for both variations.