function noQueryShow() {  // eslint-disable-line no-unused-vars
  try {
    request = new PaymentRequest(
        [
          {supportedMethods: 'https://bobpay.com'},
          {
            supportedMethods: 'basic-card',
            data: {supportedNetworks: ['visa']},
          },
        ],
        {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
    request.show()
        .then(function(resp) {
          resp.complete('success')
              .then(function() {
                print(JSON.stringify(resp, undefined, 2));
              })
              .catch(function(error) {
                print(error);
              });
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error.message);
  }
}
/**
 * Do not query CanMakePayment before showing the Payment Request.
 */
Do not query CanMakePayment before showing the Payment Request.
Do not query CanMakePayment before showing the Payment Request .
function noQueryShow() {  
  try {
    request = new PaymentRequest(
        [
          {supportedMethods: 'https://bobpay.com'},
          {
            supportedMethods: 'basic-card',
            data: {supportedNetworks: ['visa']},
          },
        ],
        {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
    request.show()
        .then(function(resp) {
          resp.complete('success')
              .then(function() {
                print(JSON.stringify(resp, undefined, 2));
              })
              .catch(function(error) {
                print(error);
              });
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error.message);
  }
}
function noQueryShow ( ) { try { request = new PaymentRequest ( [ { supportedMethods : 'https://bobpay.com' } , { supportedMethods : 'basic-card' , data : { supportedNetworks : [ 'visa' ] } , } , ] , { total : { label : 'Total' , amount : { currency : 'USD' , value : '5.00' } } } ) ; request . show ( ) . then ( function ( resp ) { resp . complete ( 'success' ) . then ( function ( ) { print ( JSON . stringify ( resp , undefined , 2 ) ) ; } ) . catch ( function ( error ) { print ( error ) ; } ) ; } ) . catch ( function ( error ) { print ( error ) ; } ) ; } catch ( error ) { print ( error . message ) ; } }
Do not query CanMakePayment before showing the Payment Request.
Do not query CanMakePayment before showing the Payment Request .
// eslint-disable-line no-unused-vars