third_party/subscriptions-project/swg.js
/**
 * Returns the allowedAuthMethods for a card from the request.
 *
 * @param {!IsReadyToPayRequest} isReadyToPayRequest
 * @return {?Array<string>}
 * @private
 */
Returns the allowedAuthMethods for a card from the request.
Returns the allowedAuthMethods for a card from the request .
function extractAllowedAuthMethodsForCards_(isReadyToPayRequest) {
  if (isReadyToPayRequest.allowedPaymentMethods) {
    const allowedPaymentMethod = getAllowedPaymentMethodForType_(
        isReadyToPayRequest, Constants.PaymentMethod.CARD);
    if (allowedPaymentMethod && allowedPaymentMethod.parameters) {
      return allowedPaymentMethod.parameters['allowedAuthMethods'];
    }
  }
  return null;
}
function extractAllowedAuthMethodsForCards_ ( isReadyToPayRequest ) { if ( isReadyToPayRequest . allowedPaymentMethods ) { const allowedPaymentMethod = getAllowedPaymentMethodForType_ ( isReadyToPayRequest , Constants . PaymentMethod . CARD ) ; if ( allowedPaymentMethod && allowedPaymentMethod . parameters ) { return allowedPaymentMethod . parameters [ 'allowedAuthMethods' ] ; } } return null ; }
Returns the allowedAuthMethods for a card from the request.
Returns the allowedAuthMethods for a card from the request .