Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GOOD_DISPOSITION = "OK" BAD_DISPOSITION = "DENIED" INVALID_ACCOUNT_IDENTIFIER = "Bad Account Identifier" )
View Source
var LOGGER = logging.MustGetLogger("callback")
Functions ¶
func GetCursor ¶
func GetCursor(cl NotifyPaymentClient, accountName string) (cursor model.Cursor, err error)
func PostPayment ¶
func PostPayment(cl NotifyPaymentClient, pNotification model.Receive) (err error)
Types ¶
type MockNotifyPaymentClient ¶
func CreateMockNotifyPaymentClient ¶
func CreateMockNotifyPaymentClient() (MockNotifyPaymentClient, error)
func (MockNotifyPaymentClient) GetLastCursor ¶
func (client MockNotifyPaymentClient) GetLastCursor(string) (cursor model.Cursor, err error)
func (MockNotifyPaymentClient) NotifyPayment ¶
func (client MockNotifyPaymentClient) NotifyPayment(pNotification model.Receive) error
type NotifyPaymentClient ¶
type RestNotifyPaymentClient ¶
type RestNotifyPaymentClient struct {
GetCursorURL string
}
func (RestNotifyPaymentClient) GetLastCursor ¶
func (client RestNotifyPaymentClient) GetLastCursor(accountName string) (cursor model.Cursor, err error)
Click to show internal directories.
Click to hide internal directories.