payment

package
v1.15.20 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupportedPlatforms

func GetSupportedPlatforms() []platform.Info

func ParseAmount added in v1.14.0

func ParseAmount(value string) (int64, error)

ParseAmount converts a non-negative decimal currency amount to its integer minor unit. Financial callback code must not compare parsed float64 values.

func SupportedPlatformNames added in v1.14.15

func SupportedPlatformNames() []string

SupportedPlatformNames lists every platform that may be exposed for a new checkout. Keep this separate from GetSupportedPlatforms because balance is an internal checkout method rather than an administrator-configurable gateway.

Types

type Platform

type Platform int
const (
	Stripe Platform = iota
	AlipayF2F
	EPay
	Balance
	Cryptomus
	UNSUPPORTED Platform = -1
)

func ParsePlatform

func ParsePlatform(s string) Platform

func (Platform) String

func (p Platform) String() string

Directories

Path Synopsis
Package cryptomus implements the Cryptomus crypto-payment gateway protocol: invoice creation, invoice lookup and webhook signature verification.
Package cryptomus implements the Cryptomus crypto-payment gateway protocol: invoice creation, invoice lookup and webhook signature verification.

Jump to

Keyboard shortcuts

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