Remove unused

This commit is contained in:
Alex P 2023-09-25 09:52:53 +03:00
parent d86b315229
commit 099b50728e
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -125,10 +125,6 @@ const PayPalComponent = ({
shipping_address: addresses.shippingAddress,
});
}
const checkoutUrl = new URL(config.scriptData.redirect);
// sometimes some browsers may load some kind of cached version of the page,
// so adding a parameter to avoid that
checkoutUrl.searchParams.append('ppcp-continuation-redirect', (new Date()).getTime().toString());
location.href = getCheckoutRedirectUrl();
} else {