function buy() {  // eslint-disable-line no-unused-vars
  try {
    buildPaymentRequest()
        .show()
        .then(function(response) {
          response.complete()
              .then(function() {
                print(JSON.stringify(response, undefined, 2));
              })
              .catch(function(error) {
                print(error);
              });
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error);
  }
}
/** Requests payment via a debit card. */
Requests payment via a debit card.
Requests payment via a debit card .
function buy() {  
  try {
    buildPaymentRequest()
        .show()
        .then(function(response) {
          response.complete()
              .then(function() {
                print(JSON.stringify(response, undefined, 2));
              })
              .catch(function(error) {
                print(error);
              });
        })
        .catch(function(error) {
          print(error);
        });
  } catch (error) {
    print(error);
  }
}
function buy ( ) { try { buildPaymentRequest ( ) . show ( ) . then ( function ( response ) { response . complete ( ) . then ( function ( ) { print ( JSON . stringify ( response , undefined , 2 ) ) ; } ) . catch ( function ( error ) { print ( error ) ; } ) ; } ) . catch ( function ( error ) { print ( error ) ; } ) ; } catch ( error ) { print ( error ) ; } }
Requests payment via a debit card.
Requests payment via a debit card .
// eslint-disable-line no-unused-vars