payment

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package payment enables interaction with arbitrary payment providers. It implements a standardized interface through which Stripe, PayPal and more may be supported. It's up to individual drivers to add support for each of these services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drivers

func Drivers() []string

Drivers returns a sorted list of the names of the registered drivers.

func Register

func Register(name string, driver driver.Driver)

Register makes a payment driver available by the provided name. If Register is called twice with the same name or if driver is nill, it panics.

Types

type Conn

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

Conn is a connection to a specific payment driver.

func Open

func Open(driverName string, db *sqlx.DB, e *echo.Echo, auth string) (*Conn,
	error)

Open a connection to a registered driver.

func (*Conn) Driver

func (c *Conn) Driver() driver.Driver

Driver returns the driver used by a connection.

Directories

Path Synopsis
Package driver defines interfaces to be implemented by payment drivers as used by package payment.
Package driver defines interfaces to be implemented by payment drivers as used by package payment.

Jump to

Keyboard shortcuts

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