Documentation ¶
Index ¶
- Constants
- Variables
- func BuildPayload(root ...Pair) (string, error)
- func CheckCRC(input string) bool
- func GetIn(input string, ids ...string) string
- type Pair
- func AdditionalData(data ...Pair) Pair
- func CountryCode(code string) Pair
- func Currency(id string, isoCode string, amount interface{}) Pair
- func Float64(id string, value float64) Pair
- func List(id string, values ...Pair) Pair
- func MerchantAccountInfo(info ...Pair) Pair
- func MerchantCategory(code string) Pair
- func MerchantCity(city string) Pair
- func MerchantName(name string) Pair
- func PayloadFormatIndicator() Pair
- func PointOfInitiationMethod(isDynamic bool) Pair
- func PostalCode(code string) Pair
- func String(id, value string) Pair
- func TransactionAmount(isoCode string, amount interface{}) Pair
- func TransactionAmountUint(amount uint64) Pair
- func TransactionCurrency(code string) Pair
- func Uint64(id string, value uint64) Pair
- type ServiceCode
- type Valuer
- type VietQRInput
Constants ¶
View Source
const (
GUIDVietQR = "A000000727"
)
Variables ¶
View Source
var ErrDataTooLong = internal.ErrDataTooLong
Functions ¶
func BuildPayload ¶
Types ¶
type Pair ¶
func AdditionalData ¶
func CountryCode ¶
func MerchantAccountInfo ¶
func MerchantCategory ¶
func MerchantCity ¶
func MerchantName ¶
func PayloadFormatIndicator ¶
func PayloadFormatIndicator() Pair
func PointOfInitiationMethod ¶
func PostalCode ¶
func TransactionAmount ¶
func TransactionAmountUint ¶
func TransactionCurrency ¶
type ServiceCode ¶
type ServiceCode string
const ( // QR Inter-Bank Funds Transfer To Account ServiceCodeToAccount ServiceCode = "QRIBFTTA" // QR Inter-Bank Funds Transfer To Card ServiceCodeToCard ServiceCode = "QRIBFTTC" )
func (ServiceCode) ToPair ¶
func (s ServiceCode) ToPair(id string) Pair
type VietQRInput ¶
type VietQRInput struct { AcqID string `json:"acqID"` AccountNo string `json:"accountNo"` Amount uint64 `json:"amount"` AdditionalInfo string `json:"addInfo"` IsCard bool `json:"isCard"` }
func (VietQRInput) BuildPayload ¶
func (i VietQRInput) BuildPayload() (string, error)
Click to show internal directories.
Click to hide internal directories.