epaytest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestServer

type TestServer struct {
	// contains filtered or unexported fields
}

TestServer testing server that simulates Epay requestor

func NewServer

func NewServer(t *testing.T, host string) (*TestServer, func())

NewServer creates a new testing epay server that tries to connect to the provided host

func (*TestServer) DummyRequest

func (f *TestServer) DummyRequest(cmd string) string

DummyRequest allows sending of dummy request to the target epay adapter

func (*TestServer) GetCurrentBill

func (f *TestServer) GetCurrentBill(customerID, transactionID string) string

GetCurrentBill asks for duties of a given customer

func (*TestServer) PayBill

func (f *TestServer) PayBill(customerID, transactionID string, amount int) string

PayBill notifies trader for executed payment

Jump to

Keyboard shortcuts

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