mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
fix method name
This commit is contained in:
parent
c908fddb6e
commit
d1cab80167
1 changed files with 7 additions and 1 deletions
|
@ -61,7 +61,13 @@ return array(
|
|||
'api.bearer' => static function ( ContainerInterface $container ): Bearer {
|
||||
|
||||
$state = $container->get( 'onboarding.state' );
|
||||
if ( $state->currentState() < State::STATE_ONBOARDED ) {
|
||||
|
||||
/**
|
||||
* The State.
|
||||
*
|
||||
* @var State $state
|
||||
*/
|
||||
if ( $state->current_state() < State::STATE_ONBOARDED ) {
|
||||
return new ConnectBearer();
|
||||
}
|
||||
global $wpdb;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue