When upgrading/downgrading bundle plan avoid a race condition between

WC and middleware by checking that the order is paid and the linked
subscription is active.

Signed-off-by: Birin Sanchez <birin.sanchez@puri.sm>
1 job for 29_race_wc_middleware in 30 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Deb
passed #61678
liberty
deb

00:00:30