checkmo

package
v1.4.5-alpha1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package checkmo is a "Check Money Order" implementation of payment method interface declared in "github.com/ottemo/commerce/app/models/checkout" package

Index

Constants

View Source
const (
	ConstPaymentCode = "checkmo"
	ConstPaymentName = "Check/Money Order"

	ConstConfigPathGroup   = "payment.checkmo"
	ConstConfigPathEnabled = "payment.checkmo.enabled"
	ConstConfigPathTitle   = "payment.checkmo.title"

	ConstErrorModule = "payment/checkmo"
	ConstErrorLevel  = env.ConstErrorLevelActor
)

Package global constants

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckMoneyOrder

type CheckMoneyOrder struct{}

CheckMoneyOrder is a simplest implementer of InterfacePaymentMethod

func (*CheckMoneyOrder) Authorize

func (it *CheckMoneyOrder) Authorize(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)

Authorize makes payment method authorize operation

func (*CheckMoneyOrder) Capture

func (it *CheckMoneyOrder) Capture(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)

Capture makes payment method capture operation

func (*CheckMoneyOrder) DeleteSavedCard

func (it *CheckMoneyOrder) DeleteSavedCard(token visitor.InterfaceVisitorCard) (interface{}, error)

Delete saved card from the payment system. **This method is for future use**

func (*CheckMoneyOrder) GetCode

func (it *CheckMoneyOrder) GetCode() string

GetCode returns payment method code

func (CheckMoneyOrder) GetInternalName

func (it CheckMoneyOrder) GetInternalName() string

GetInternalName returns the name of the payment method

func (*CheckMoneyOrder) GetName

func (it *CheckMoneyOrder) GetName() string

GetName returns the user customized name of the payment method

func (*CheckMoneyOrder) GetType

func (it *CheckMoneyOrder) GetType() string

GetType returns type of payment method

func (*CheckMoneyOrder) IsAllowed

func (it *CheckMoneyOrder) IsAllowed(checkoutInstance checkout.InterfaceCheckout) bool

IsAllowed checks for method applicability

func (*CheckMoneyOrder) IsTokenable

func (it *CheckMoneyOrder) IsTokenable(checkoutInstance checkout.InterfaceCheckout) bool

IsTokenable checks for method applicability

func (*CheckMoneyOrder) Refund

func (it *CheckMoneyOrder) Refund(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)

Refund makes payment method refund operation

func (*CheckMoneyOrder) Void

func (it *CheckMoneyOrder) Void(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)

Void makes payment method void operation

Jump to

Keyboard shortcuts

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