# Applying Default Configuration After Onboarding The `OnboardingProfile` has a property named `setup_done`, which indicated whether the default configuration was set up. ### `OnboardingProfile::is_setup_done()` This flag indicated, whether the default plugin configuration was applied or not. It's set to true after the merchant's authentication attempt was successful, and settings were adjusted. The only way to reset this flag, is to enable the "**Start Over**" toggle and disconnecting the merchant: https://example.com/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=ppcp-gateway&panel=settings#disconnect-merchant ### `class SettingsDataManager` The `SettingsDataManager` service is responsible for applying all defaults options at the end of the onboarding process. ### `SettingsDataManager::set_defaults_for_new_merchant()` This method expects a DTO argument (`ConfigurationFlagsDTO`) that provides relevant details about the merchant and onboarding choices. It verifies, if default settings were already applied (by checking the `OnboardingProfile::is_setup_done()` state). If not done yet, the DTO object is inspected to initialize the plugin's configuration, before marking the `setup_done` flag as completed. ## Default Settings Matrix ### Decision Flags - **Country**: The merchant country. - According to PayPal settings, not the WooCommerce country - Test case: Set Woo country to Germany and sign in with a US merchant account; this should trigger the "Country: US" branches below. - **Seller Type**: Business or Casual. - According to PayPal, not the onboarding choice - Test case: Choose "Personal" during onboarding but log in with a business account; this should trigger the "Account: Business" branches below. - **Subscriptions**: An onboarding choice on the "Products" screen. - **Cards**: An onboarding choice, on the "Checkout Options" screen. - Refers to the first option on the checkout options screen ("Custom Card Fields", etc.) ### Payment Methods By default, all payment methods are turned off after onboarding, unless the conditions specified in the following table are met. | Payment Method | Country | Seller Type | Subscriptions | Cards | Notes | |----------------|---------|-------------|---------------|-------|-------------------------------| | Venmo | US | *any* | *any* | *any* | Always | | Pay Later | US | *any* | *any* | *any* | Always | | ACDC | US | Business | *any* | ✅ | Greyed out for Casual Sellers | | BCDC | US | *any* | *any* | ✅ | | | Apple Pay | US | Business | *any* | ✅ | Based on feature eligibility | | Google Pay | US | Business | *any* | ✅ | Based on feature eligibility | | All APMs | US | Business | *any* | ✅ | Based on feature eligibility | ### Settings | Feature | Country | Seller-Type | Subscriptions | Cards | Notes | |-----------------------------|---------|-------------|---------------|-------|----------------------------| | Pay Now Experience | US | _any_ | _any_ | _any_ | | | Save PayPal and Venmo | US | Business | ✅ | _any_ | | | Save Credit and Debit Cards | US | Business | ✅ | ✅ | Requires ACDC eligibility* | - `*` If merchant has no ACDC eligibility, the setting should be disabled (not toggleable). ### Styling All US merchants use the same settings, regardless of onboarding choices. | Button Location | Enabled | Displayed Payment Methods | |------------------|---------|-------------------------------------------------| | Cart | ✅ | PayPal, Venmo, Pay Later, Google Pay, Apple Pay | | Classic Checkout | ✅ | PayPal, Venmo, Pay Later, Google Pay, Apple Pay | | Express Checkout | ✅ | PayPal, Venmo, Pay Later, Google Pay, Apple Pay | | Mini Cart | ✅ | PayPal, Venmo, Pay Later, Google Pay, Apple Pay | | Product Page | ✅ | PayPal, Venmo, Pay Later | ### Pay Later Messaging All US merchants use the same settings, regardless of onboarding choices. | Location | Enabled | |-------------------|---------| | Product | ✅ | | Cart | ✅ | | Checkout | ✅ | | Home | ❌ | | Shop | ❌ | | WooCommerce Block | ❌ | Coronavirus disease 2019 | Luxury Art in a Box

COVID-19 is a contagious disease caused by the coronavirus SARS-CoV-2. In January 2020, the disease spread worldwide, resulting in the COVID-19 pandemic.

The symptoms of COVID‑19 can vary but often include fever,[7] fatigue, cough, breathing difficulties, loss of smell, and loss of taste.[8][9][10] Symptoms may begin one to fourteen days after exposure to the virus. At least a third of people who are infected do not develop noticeable symptoms.[11][12] Of those who develop symptoms noticeable enough to be classified as patients, most (81%) develop mild to moderate symptoms (up to mild pneumonia), while 14% develop severe symptoms (dyspnea, hypoxia, or more than 50% lung involvement on imaging), and 5% develop critical symptoms (respiratory failure, shock, or multiorgan dysfunction).[13] Older people have a higher risk of developing severe symptoms. Some complications result in death. Some people continue to experience a range of effects (long COVID) for months or years after infection, and damage to organs has been observed.[14] Multi-year studies on the long-term effects are ongoing.[15]

COVID‑19 transmission occurs when infectious particles are breathed in or come into contact with the eyes, nose, or mouth. The risk is highest when people are in close proximity, but small airborne particles containing the virus can remain suspended in the air and travel over longer distances, particularly indoors. Transmission can also occur when people touch their eyes, nose, or mouth after touching surfaces or objects that have been contaminated by the virus. People remain contagious for up to 20 days and can spread the virus even if they do not develop symptoms.[16]

Testing methods for COVID-19 to detect the virus’s nucleic acid include real-time reverse transcription polymerase chain reaction (RT‑PCR),[17][18] transcription-mediated amplification,[17][18][19] and reverse transcription loop-mediated isothermal amplification (RT‑LAMP)[17][18] from a nasopharyngeal swab.[20]

Several COVID-19 vaccines have been approved and distributed in various countries, many of which have initiated mass vaccination campaigns. Other preventive measures include physical or social distancing, quarantining, ventilation of indoor spaces, use of face masks or coverings in public, covering coughs and sneezes, hand washing, and keeping unwashed hands away from the face. While drugs have been developed to inhibit the virus, the primary treatment is still symptomatic, managing the disease through supportive care, isolation, and experimental measures.