Given the vaulting features can only be added to a merchant's account via onboarding, all vaulting-related options in the plugin should remain turned off (and disabled) until the merchant has the relevant scopes in their access token (https://uri.paypal.com/services/vault/payment-tokens/readwrite for instance). Until that happens, we should point merchants to the onboarding via a note around the settings or something.
Scenario Vault setting availableGiven Vault is enabled in Sandbox / App feature options / Accept payments / Advanced options.
When I visit Settings page.
Then I should see the setting able to be activated.
Scenario Vault setting unavailableGiven Vault is NOT enabled in Sandbox / App feature options / Accept payments / Advanced options.
When I visit Settings page.
Then I should see the setting completely disabled.
Moved from #147
Given the vaulting features can only be added to a merchant's account via onboarding, all vaulting-related options in the plugin should remain turned off (and disabled) until the merchant has the relevant scopes in their access token (https://uri.paypal.com/services/vault/payment-tokens/readwrite for instance). Until that happens, we should point merchants to the onboarding via a note around the settings or something.
Example:
Acceptance Criteria
Scenario Vault setting available Given Vault is enabled in Sandbox / App feature options / Accept payments / Advanced options. When I visit Settings page. Then I should see the setting able to be activated.
Scenario Vault setting unavailable Given Vault is NOT enabled in Sandbox / App feature options / Accept payments / Advanced options. When I visit Settings page. Then I should see the setting completely disabled.