func WithCreditCard(bank Bank, installmentType InstallmentType, installmentTerm int) Option {
	if bank == "" {
		bank = BankBCA
	}
	if installmentType == "" {
		installmentType = InstallmentOffline
	}
	return func(o *Options) {
		o.CreditCard = &CreditCard{
			Bank: bank,
			Installment: Installment{
				Type: installmentType,
				Term: installmentTerm,
			},
		}
	}
}
WithCreditCard can be used if user want to use the installment feature. It accepts the acquire bank,
installment type and term
package payment
import (
	"net/http"
	"strconv"
)
type Option func(*Options)
type CreditCard struct {
	Bank        Bank
	Installment Installment
}
type Installment struct {
	Type InstallmentType
	Term int
}
type Options struct {
	Price      *Money
	CreditCard *CreditCard
}
func WithPrice(price float64, currency string) Option {
	return func(o *Options) {
		o.Price = &Money{
			Value:    price,
			Currency: currency,
		}
	}
}