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
- type CheckMoneyOrder
- func (it *CheckMoneyOrder) Authorize(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)
- func (it *CheckMoneyOrder) Capture(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)
- func (it *CheckMoneyOrder) DeleteSavedCard(token visitor.InterfaceVisitorCard) (interface{}, error)
- func (it *CheckMoneyOrder) GetCode() string
- func (it CheckMoneyOrder) GetInternalName() string
- func (it *CheckMoneyOrder) GetName() string
- func (it *CheckMoneyOrder) GetType() string
- func (it *CheckMoneyOrder) IsAllowed(checkoutInstance checkout.InterfaceCheckout) bool
- func (it *CheckMoneyOrder) IsTokenable(checkoutInstance checkout.InterfaceCheckout) bool
- func (it *CheckMoneyOrder) Refund(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)
- func (it *CheckMoneyOrder) Void(orderInstance order.InterfaceOrder, paymentInfo map[string]interface{}) (interface{}, error)
Constants ¶
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