provider

package
v0.0.0-...-b3f3fbb Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package provider provides functionality for dealing with Payment Service Providers (PSPs)

Index

Constants

View Source
const (
	ProviderPath = "/p"
)

Variables

View Source
var (
	ErrNoDriver = errors.New("no driver found")
)

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Attach(ctx *service.Context, mux *mux.Router) error

	InitPayment(p *payment.Payment, method *payment_method.Method) (http.Handler, error)
}

type Service

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

func NewService

func NewService(ctx *service.Context) (*Service, error)

func (*Service) AttachDrivers

func (s *Service) AttachDrivers(mux *mux.Router) error

func (*Service) Driver

func (s *Service) Driver(method *payment_method.Method) (Driver, error)

Directories

Path Synopsis
Package fritzpay provides the Test-/Demo-Payment Service Provider (PSP) FritzPay This package demonstrates how to add new PSP drivers.
Package fritzpay provides the Test-/Demo-Payment Service Provider (PSP) FritzPay This package demonstrates how to add new PSP drivers.
Package paypal_rest provides the PayPal REST-API provider driver Paypal data types
Package paypal_rest provides the PayPal REST-API provider driver Paypal data types
Package stripe provides the stripe provider driver
Package stripe provides the stripe provider driver

Jump to

Keyboard shortcuts

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