mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Add GooglePay onboarding improvements.
This commit is contained in:
parent
bad21380b3
commit
b703f17bbf
7 changed files with 31 additions and 16 deletions
|
@ -134,7 +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' );
|
||||
do_action( 'woocommerce_paypal_payments_clear_apm_product_status', $this->settings );
|
||||
|
||||
$endpoint = $is_sandbox ? $this->login_seller_sandbox : $this->login_seller_production;
|
||||
$credentials = $endpoint->credentials_for(
|
||||
|
|
|
@ -238,7 +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' );
|
||||
do_action( 'woocommerce_paypal_payments_clear_apm_product_status', $settings );
|
||||
|
||||
if ( ! $settings->persist() ) {
|
||||
return new \WP_Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue