tedPaymentMethodData(),
          {total: {label: 'Stub', amount: {currency: 'USD', value: '0.01'}}})
        .canMakePayment()
        .then(function(result) {
          shouldCallPaymentRequest = result;
        }).catch(function(error) {
          console.log(error);
          // The user may have turned off query ability in their privacy settings.
          // Let's use PaymentRequest by default & fallback to legacy web form checkout.
          shouldCallPaymentRequest = true;
        });

      checkou