payment

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func Use

func Use(opts ...UseOption) runtime.Capability

Types

type ChannelBinding

type ChannelBinding = corepayment.ChannelBinding

type ChannelSelection

type ChannelSelection = corepayment.ChannelSelection

type ChannelSelectionRequest

type ChannelSelectionRequest = corepayment.ChannelSelectionRequest

type ChannelSelector

type ChannelSelector = corepayment.ChannelSelector

type Config

type Config struct {
	Channels        []ChannelBinding `mapstructure:"channels" yaml:"channels"`
	ChannelBindings []ChannelBinding `mapstructure:"channel_bindings" yaml:"channel_bindings"`
}

type ConfigLoader

type ConfigLoader func(app *runtime.App) (Config, error)

type PricingPolicy

type PricingPolicy = corepayment.PricingPolicy

type ProviderAdapter

type ProviderAdapter = corepayment.ProviderAdapter

type Registry

type Registry = corepayment.Registry

type ReloadableChannelSelector

type ReloadableChannelSelector = corepayment.ReloadableChannelSelector

type Service

type Service = corepayment.Service

func From

func From(app *runtime.App) *Service

func FromDefault

func FromDefault() (*Service, error)

type ServiceConfig

type ServiceConfig = corepayment.ServiceConfig

type SetupFunc

type SetupFunc func(app *runtime.App, registry *Registry) error

type UseOption

type UseOption func(*useOptions)

func WithAdapters

func WithAdapters(adapters ...ProviderAdapter) UseOption

func WithChannelBindings

func WithChannelBindings(bindings ...ChannelBinding) UseOption

func WithChannelSelector

func WithChannelSelector(selector ChannelSelector) UseOption

func WithConfig

func WithConfig(cfg Config) UseOption

func WithConfigLoader

func WithConfigLoader(loader ConfigLoader) UseOption

func WithDependencies

func WithDependencies(deps ...runtime.Dependency) UseOption

func WithInternal

func WithInternal() UseOption

func WithPricingPolicy

func WithPricingPolicy(policy PricingPolicy) UseOption

func WithRegistry

func WithRegistry(registry *Registry) UseOption

func WithService

func WithService(service *Service) UseOption

func WithSetup

func WithSetup(setup SetupFunc) UseOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL