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

Add button to reload feature eligibility status from Connection tab (2426) #1902

Conversation

pedrosilva-pt
Copy link
Contributor

PR Description

This PR implements the RefreshFeatureStatusEndpoint endpoint and respective frontend UI logic.
The product status is refreshed via a call to the woocommerce_paypal_payments_clear_apm_product_status action.
A cache was used to enforce a timeout of 60 seconds between refresh attempts.

Issue Description

As a user with an already-connected PayPal account
I sign up for ACDC/Apple Pay/Google Pay/PUI after my account was connected
And expect that the plugin reflects the status of the new feature availability

To ensure a smooth setup for advanced features like Apple Pay, users need a way to update the feature eligibility status from the Connection tab without reconnecting their account.

Above the buttons for Advanced Card Processing, PUI, Google Pay, & Apple Pay, a new button should refresh the eligibility status by performing a merchant-integrations call.

image

After the call, the page should reload and display an updated status.
There should be a 1-minute timeout on this button before it can be clicked again.

Acceptance

Given I connected a new PayPal merchant to the plugin
And signed up for ACDC, Apple Pay, Google Pay after already being connected
When clicking the button to refresh the feature availability status
Then a merchant-integrations call can be observed in the logs
And the page refreshes with an updated status for the available features

@InpsydeNiklas InpsydeNiklas added this to the 2.4.3 milestone Dec 12, 2023
@Dinamiko Dinamiko merged commit f3b1a40 into trunk Dec 13, 2023
14 checks passed
@Dinamiko Dinamiko deleted the PCP-2426-add-button-to-reload-feature-eligibility-status-from-connection-tab branch December 13, 2023 15:54
@Dinamiko Dinamiko mentioned this pull request Dec 18, 2023
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

Successfully merging this pull request may close these issues.

3 participants