paymentgateway

package
v0.0.0-...-cb7f019 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayProvider

type GatewayProvider interface {
	// New(*buyte.ProviderCheckoutConnection) (*buyte.Gateway, error) Not interfacing for now...
	Charge(*buyte.CreateChargeInput, *buyte.NetworkToken, *buyte.PaymentToken) (*buyte.GatewayCharge, error)
	ChargeNative(*buyte.CreateChargeInput, string, *buyte.PaymentToken) (*buyte.GatewayCharge, error)
	IsConnect() bool
}

type Provider

type Provider struct {
	IsTest  bool            `json:"isTest"`
	Details ProviderDetails `json:"provider"`
	Gateway GatewayProvider
}

Each provider has their own underling gateway provider details.

func New

type ProviderCharge

type ProviderCharge map[string]interface{} // struct {}

type ProviderDetails

type ProviderDetails struct {
	Name string `json:"name"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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