mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Assert settings instance
This commit is contained in:
parent
eb514dd0fe
commit
f16045f343
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ class WCGatewayModule implements ModuleInterface {
|
|||
'woocommerce_paypal_payments_gateway_migrate',
|
||||
static function () use ( $c ) {
|
||||
$settings = $c->get( 'wcgateway.settings' );
|
||||
assert( $settings instanceof Settings );
|
||||
|
||||
if ( $settings->get( '3d_secure_contingency' ) === '3D_SECURE' ) {
|
||||
$settings->set( '3d_secure_contingency', 'SCA_ALWAYS' );
|
||||
$settings->persist();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue