package
6.5.1+incompatible
Repository: https://github.com/ftchinese/subscription-api.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewAliPayResult converts ali payment result.
NewAliWebhookResult builds PaymentResult from alipay webhook notification.
NewConfirmationResult confirms an order based on the payment result and current membership.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewWxPayResult creates a new PaymentResult from the result of querying wechat order.
NewWxWebhookResult builds PaymentResult from wechat pay webhook notification.

# Constants

StmtConfirmOrder build SQL to set an order confirmed.
No description provided by the author
StmtCreateOrder a new order.
No description provided by the author
No description provided by the author
StmtLockOrder locks a row to retrieve onl the minimal fields used to determine whether the order is confirmed.
No description provided by the author
StmtOrderHeader retrieves the first half of an order to circumvent the problem of oversize packet transfer between db and server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
ConfirmationParams contains data used to invoice an order.
ConfirmationResult contains all the data in the process of confirming an order.
No description provided by the author
DiscountRedeemed records user's redemption history of non-recurring discount.
FtcCartParams contains the item user want to buy.
No description provided by the author
LockedOrder lock a row of order and retrieves the minimal data.
No description provided by the author
Order contains the details of a user's action to place an order.
No description provided by the author
No description provided by the author
PaymentResult unifies ali and wx webhook payload, or query order.
PurchasedTimeParams is used to deduce an order's purchase period.
No description provided by the author
No description provided by the author