Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created December 14, 2016 23:26
Show Gist options
  • Save kypflug/7daa1f7f31c90b6f679ffa31925b4e31 to your computer and use it in GitHub Desktop.
Save kypflug/7daa1f7f31c90b6f679ffa31925b4e31 to your computer and use it in GitHub Desktop.
//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