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.