mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Refactor GooglePay onboarding
This commit is contained in:
parent
62e10387cb
commit
bad21380b3
12 changed files with 289 additions and 24 deletions
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue