function noSupported() {  // eslint-disable-line no-unused-vars
  try {
    request = new PaymentRequest(
        [{
          supportedMethods: 'https://randompay.com',
        }],
        {
          total: {
            label: 'Total',
            amount: {
              currency: 'USD',
              value: '5.00',
            },
          },
          shippingOptions: [{
            id: 'freeShippingOption',
            label: 'Free global shipping',
            amount: {
              currency: 'USD',
              value: '0',
            },
            selected: true,
          }],
        },
        {
          requestShipping: true,
        });
    request.show()
        .then(function(resp) {
          return resp.complete('success');
        })
        .then(function() {
          print(JSON.stringify(resp, undefined, 2));
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error.message);
  }
}
/**
 * Launches the PaymentRequest UI which accepts only an unsupported payment
 * method.
 */
Launches the PaymentRequest UI which accepts only an unsupported payment
method.
Launches the PaymentRequest UI which accepts only an unsupported payment method .
function noSupported() {  
  try {
    request = new PaymentRequest(
        [{
          supportedMethods: 'https://randompay.com',
        }],
        {
          total: {
            label: 'Total',
            amount: {
              currency: 'USD',
              value: '5.00',
            },
          },
          shippingOptions: [{
            id: 'freeShippingOption',
            label: 'Free global shipping',
            amount: {
              currency: 'USD',
              value: '0',
            },
            selected: true,
          }],
        },
        {
          requestShipping: true,
        });
    request.show()
        .then(function(resp) {
          return resp.complete('success');
        })
        .then(function() {
          print(JSON.stringify(resp, undefined, 2));
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error.message);
  }
}
function noSupported ( ) { try { request = new PaymentRequest ( [ { supportedMethods : 'https://randompay.com' , } ] , { total : { label : 'Total' , amount : { currency : 'USD' , value : '5.00' , } , } , shippingOptions : [ { id : 'freeShippingOption' , label : 'Free global shipping' , amount : { currency : 'USD' , value : '0' , } , selected : true , } ] , } , { requestShipping : true , } ) ; request . show ( ) . then ( function ( resp ) { return resp . complete ( 'success' ) ; } ) . then ( function ( ) { print ( JSON . stringify ( resp , undefined , 2 ) ) ; } ) . catch ( function ( error ) { print ( error ) ; } ) ; } catch ( error ) { print ( error . message ) ; } }
Launches the PaymentRequest UI which accepts only an unsupported payment
 method.
Launches the PaymentRequest UI which accepts only an unsupported payment method .
// eslint-disable-line no-unused-vars