Rock.Financial.GatewayComponent.SupportsSavedAccount C# (CSharp) Method

SupportsSavedAccount() public method

Returnes a boolean value indicating if 'Saved Account' functionality is supported for the given currency type.
public SupportsSavedAccount ( DefinedValueCache currencyType ) : bool
currencyType DefinedValueCache Type of the currency.
return bool
        public virtual bool SupportsSavedAccount( DefinedValueCache currencyType )
        {
            return true;
        }

Same methods

GatewayComponent::SupportsSavedAccount ( bool isRepeating ) : bool

Usage Example

        private string GetSavedAcccountFreqSupported( GatewayComponent component )
        {
            if ( component != null )
            {
                if ( component.SupportsSavedAccount( true ) )
                {
                    if ( component.SupportsSavedAccount( false ) )
                    {
                        return "both";
                    }
                    else
                    {
                        return "repeating";
                    }
                }
                else
                {
                    if ( component.SupportsSavedAccount( false ) )
                    {
                        return "onetime";
                    }
                }
            }

            return "none";
        }
All Usage Examples Of Rock.Financial.GatewayComponent::SupportsSavedAccount