Documentation ¶
Index ¶
- Variables
- func AppendOrderInfo(db *sql.DB, tbl string, order *pp.Order, captureID string) error
- func InitializeTables(db *sql.DB, tbl string) error
- func PendingOrderID(db *sql.DB, tbl string, request payment.PaymentRequest, gatewayType uint) error
- func SelectCaptureID(db *sql.DB, tbl, referenceID string) (string, error)
- func SelectOrderDetail(db *sql.DB, tbl, referenceID string) (orderDetailsStr string, err error)
- func SelectOrderID(db *sql.DB, tbl, referenceID string) (orderID string, err error)
- func SelectPaymentRequest(db *sql.DB, tbl, referenceID string) (payment.PaymentRequest, error)
- func SelectRefunded(db *sql.DB, tbl, referenceID string) (string, float64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilPointer = errors.New("sqlwrapper: illegal nil pointer") ErrBundledPayment = errors.New("sqlweapper: unexpected bundled order") )
Functions ¶
func AppendOrderInfo ¶
func InitializeTables ¶
InitializeTables() is not responsible to close the input *sql.DB
func PendingOrderID ¶
func SelectOrderDetail ¶
func SelectOrderID ¶
func SelectPaymentRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.