package
5.3.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.
PaymentTitle is used as the value of `subject` for alipay, and `body` for wechat pay.

# Constants

StmtConfirmOrder build SQL to set an order confirmed.
No description provided by the author
StmtInsertOrder a new order.
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

# Structs

AlipayBrowserIntent represents an order creates for alipay inside browsers.
AlipayNativeIntent is an order created inside a native app.
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
No description provided by the author
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
OrderParams contains the item user want to buy.
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.
WxPayBrowserIntent creates order for payment via wechat made in browsers.
WepayEmbedBrowserOrder responds to purchase made in wechat embedded browser.
WxPayNativeAppIntent creates an order used by native apps.
No description provided by the author