| @@ -84,9 +84,9 @@ | ||
| 84 | 84 | do_action( 'wc_vipps_recurring_after_rest_api_check_order_status', $order_id ); |
| 85 | 85 | |
| 86 | 86 | $return_url = false; |
| 87 | 87 | if ( $agreement->status !== 'PENDING' ) { |
| 88 | - if ( $agreement->status === 'ACTIVE' ) { | |
| 88 | + if ( $agreement->status === 'ACTIVE' && class_exists( WC_Vipps_Recurring_Checkout::class ) ) { | |
| 89 | 89 | WC_Vipps_Recurring_Checkout::get_instance()->maybe_login_checkout_user( $order->get_id(), $order_key ); |
| 90 | 90 | } |
| 91 | 91 | $return_url = $order->get_checkout_order_received_url(); |
| 92 | 92 | } |