stripe

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package stripe implements GoMerchant payment gateway for Stripe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Key string
}

Config stripe config

type Stripe

type Stripe struct {
	Config *Config
}

Stripe implements gomerchant.PaymetGateway interface.

func New

func New(config *Config) *Stripe

New creates Stripe struct.

func (*Stripe) Authorize

func (*Stripe) Capture

func (*Stripe) Capture(transactionID string, params gomerchant.CaptureParams) (gomerchant.CaptureResponse, error)

func (*Stripe) CompleteAuthorize

func (*Stripe) CreateCreditCard

func (*Stripe) CreateCreditCard(creditCardParams gomerchant.CreateCreditCardParams) (gomerchant.CreditCardResponse, error)

func (*Stripe) DeleteCreditCard

func (*Stripe) DeleteCreditCard(deleteCreditCardParams gomerchant.DeleteCreditCardParams) (gomerchant.DeleteCreditCardResponse, error)

func (*Stripe) GetCreditCard

func (*Stripe) GetCreditCard(creditCardParams gomerchant.GetCreditCardParams) (gomerchant.GetCreditCardResponse, error)

func (*Stripe) ListCreditCards

func (*Stripe) ListCreditCards(listCreditCardsParams gomerchant.ListCreditCardsParams) (gomerchant.ListCreditCardsResponse, error)

func (*Stripe) Query

func (*Stripe) Query(transactionID string) (gomerchant.Transaction, error)

func (*Stripe) Refund

func (s *Stripe) Refund(transactionID string, amount uint, params gomerchant.RefundParams) (gomerchant.RefundResponse, error)

func (*Stripe) Void

func (*Stripe) Void(transactionID string, params gomerchant.VoidParams) (gomerchant.VoidResponse, error)

Jump to

Keyboard shortcuts

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