function canMakePayment() {  // eslint-disable-line no-unused-vars
  try {
    buildPaymentRequest()
        .canMakePayment()
        .then(function(result) {
          print(result);
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error);
  }
}
/** Checks whether payment via a debit card is possible. */
Checks whether payment via a debit card is possible.
Checks whether payment via a debit card is possible .
function canMakePayment() {  
  try {
    buildPaymentRequest()
        .canMakePayment()
        .then(function(result) {
          print(result);
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error);
  }
}
function canMakePayment ( ) { try { buildPaymentRequest ( ) . canMakePayment ( ) . then ( function ( result ) { print ( result ) ; } ) . catch ( function ( error ) { print ( error ) ; } ) ; } catch ( error ) { print ( error ) ; } }
Checks whether payment via a debit card is possible.
Checks whether payment via a debit card is possible .
// eslint-disable-line no-unused-vars