Refactor GooglePay onboarding

This commit is contained in:
Pedro Silva 2023-09-08 18:43:33 +01:00
parent 62e10387cb
commit bad21380b3
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
12 changed files with 289 additions and 24 deletions

View file

@ -134,6 +134,7 @@ class LoginSellerEndpoint implements EndpointInterface {
$this->settings->set( 'products_dcc_enabled', null );
$this->settings->set( 'products_pui_enabled', null );
$this->settings->persist();
do_action( 'woocommerce_paypal_payments_clear_apm_product_status' );
$endpoint = $is_sandbox ? $this->login_seller_sandbox : $this->login_seller_production;
$credentials = $endpoint->credentials_for(

View file

@ -238,6 +238,7 @@ class OnboardingRESTController {
$settings->set( 'products_dcc_enabled', null );
$settings->set( 'products_pui_enabled', null );
do_action( 'woocommerce_paypal_payments_clear_apm_product_status' );
if ( ! $settings->persist() ) {
return new \WP_Error(