OnReady side effect?

Hello, Pretty new on my Velo journey but managed a few nice enhancements.
I’ve a site where Stripe has been a bit iffy and I’m wondering whether it’s a side effect of a logout button that I’ve just added to my header (and so coded into master page).

Customers are finding that the payment page often reloads and won’t process when checking out a pricing plan.

Code into masterpage:
import { authentication } from ‘wix-members’ ;
import wixLocation from ‘wix-location’ ;

$w . onReady ( function () {
$w ( ‘#logout’ ). onClick (() => {
authentication . logout ();
wixLocation . to ( “/home” );
});
} );

No other code has been added to the pages effecting PP checkout.

Maybe @certifiedcode can help!

Thanks Steven. We’ve had successful transactions today without doing anything (code still intact :). ) . Not sure what the new email box under the payment window is about (across all sites) but it was causing problems late last week it seems. Wix Support weren’t able to tell me if the email is for some sort of validation