third_party/subscriptions-project/swg.js
/**
   * Returns upi payment method object if it exists in allowed payment methods
   * or null if it doesn't
   *
   * @param {!IsReadyToPayRequest|!PaymentDataRequest} request
   * @return {!Promise} The promise will contain the boolean result and error
   *     message when possible.
   */
Returns upi payment method object if it exists in allowed payment methods
or null if it doesn't

@param {!IsReadyToPayRequest|!PaymentDataRequest} request
@return {!Promise} The promise will contain the boolean result and error
message when possible.
Returns upi payment method object if it exists in allowed payment methods or null if it doesn ' t @param { !IsReadyToPayRequest|!PaymentDataRequest } request @return { !Promise } The promise will contain the boolean result and error message when possible .
isReadyToPay(request) {
    if (getUpiPaymentMethod(request)) {
      if (request.existingPaymentMethodRequired) {
        return Promise.resolve({'result': true, 'paymentMethodPresent': true});
      } else {
        return Promise.resolve({'result': true});
      }
    }
    throw new Error('No Upi payment method found in handler');
  }
isReadyToPay ( request ) { if ( getUpiPaymentMethod ( request ) ) { if ( request . existingPaymentMethodRequired ) { return Promise . resolve ( { 'result' : true , 'paymentMethodPresent' : true } ) ; } else { return Promise . resolve ( { 'result' : true } ) ; } } throw new Error ( 'No Upi payment method found in handler' ) ; }
Returns upi payment method object if it exists in allowed payment methods
 or null if it doesn't
Returns upi payment method object if it exists in allowed payment methods or null if it doesn ' t
// Always return true for UPI if api version is 2 and chrome supports // payment request