Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//Forward user to form based checkout if PaymentRequest is unavailable
if (!window.PaymentRequest) {
window.location.href = '/form-based-checkout';
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment