func (cfg Card) GetInstallment(bank payment.Bank, aType payment.InstallmentType) (*Installment, error) {
	for _, i := range cfg.Installments {
		if i.Bank == bank && i.Type == aType {
			return &i, nil
		}
	}
	return nil, fmt.Errorf("installment %w", payment.ErrNotFound)
}
GetInstallment returns an installment information for a given bank and its type
package config
import (
	"encoding/json"
	"fmt"
	"math"
	"time"
	"github.com/imrenagi/go-payment"
)
type Card struct {
	PaymentType  payment.PaymentType `yaml:"payment_type" json:"payment_type"`
	IconURLs     []string            `yaml:"icon_urls" json:"icon_urls"`
	Installments []Installment       `yaml:"installments" json:"installments"`
}