Directories
¶
| Path | Synopsis |
|---|---|
|
Package activation owns the paid-order activation workflow and implements its billing-domain stages: the recharge wallet credit, the referral commission and the final settlement.
|
Package activation owns the paid-order activation workflow and implements its billing-domain stages: the recharge wallet credit, the referral commission and the final settlement. |
|
Package adminorder implements the admin-side order management subdomain of the billing module.
|
Package adminorder implements the admin-side order management subdomain of the billing module. |
|
Package adminpayment implements the payment-method management subdomain of the billing module.
|
Package adminpayment implements the payment-method management subdomain of the billing module. |
|
Package billingtest provides the billing module's behaviour-test harness: the real repository store over a private SQLite database and a miniredis instance, with seeding helpers for the rows order flows read.
|
Package billingtest provides the billing module's behaviour-test harness: the real repository store over a private SQLite database and a miniredis instance, with seeding helpers for the rows order flows read. |
|
Package callbacks implements the payment gateway callback subdomain of the billing module: it authenticates gateway notifications, verifies them against the order's immutable payment expectation, re-confirms with the gateway and settles the payment.
|
Package callbacks implements the payment gateway callback subdomain of the billing module: it authenticates gateway notifications, verifies them against the order's immutable payment expectation, re-confirms with the gateway and settles the payment. |
|
Package checkout implements the user-facing money flows of the billing module: purchase, renewal, traffic reset, recharge, order preview and close.
|
Package checkout implements the user-facing money flows of the billing module: purchase, renewal, traffic reset, recharge, order preview and close. |
|
Package coupon implements the coupon management subdomain of the billing module.
|
Package coupon implements the coupon management subdomain of the billing module. |
|
Package exchangerate converts the site currency for gateways that collect another one: the apilayer conversion API and the cache of the refreshed CNY rate that checkout reads first.
|
Package exchangerate converts the site currency for gateways that collect another one: the apilayer conversion API and the cache of the refreshed CNY rate that checkout reads first. |
|
Package gateway is the billing module's single seam onto payment gateways.
|
Package gateway is the billing module's single seam onto payment gateways. |
|
Package ledger writes the wallet movement records of the billing module: every gift-credit and balance change an order makes is recorded here, with the same shape, timestamp and remark vocabulary.
|
Package ledger writes the wallet movement records of the billing module: every gift-credit and balance change an order makes is recorded here, with the same shape, timestamp and remark vocabulary. |
|
Package orderaudit writes the durable audit record created alongside an order.
|
Package orderaudit writes the durable audit record created alongside an order. |
|
Package ordercontext carries the idempotency metadata of a V2 order creation through the request context into the order creators V1 and V2 share; a V1 request carries none.
|
Package ordercontext carries the idempotency metadata of a V2 order creation through the request context into the order creators V1 and V2 share; a V1 request carries none. |
|
Package orderevents runs billing's order-event outbox.
|
Package orderevents runs billing's order-event outbox. |
|
Package payment holds what every payment gateway protocol shares: the supported platforms and their names, and the money conversions between the minor units orders count and the decimal amounts gateways exchange.
|
Package payment holds what every payment gateway protocol shares: the supported platforms and their names, and the money conversions between the minor units orders count and the decimal amounts gateways exchange. |
|
alipay
Package alipay implements the Alipay face-to-face payment protocol: QR code trade creation, trade query and close, and signed notification decoding.
|
Package alipay implements the Alipay face-to-face payment protocol: QR code trade creation, trade query and close, and signed notification decoding. |
|
cryptomus
Package cryptomus implements the Cryptomus crypto-payment gateway protocol: invoice creation, invoice lookup and webhook signature verification.
|
Package cryptomus implements the Cryptomus crypto-payment gateway protocol: invoice creation, invoice lookup and webhook signature verification. |
|
epay
Package epay implements the EPay payment protocol: signed payment URLs, callback signature verification and the order query, with the EasyPay-compatible query as a fallback.
|
Package epay implements the EPay payment protocol: signed payment URLs, callback signature verification and the order query, with the EasyPay-compatible query as a fallback. |
|
epay/protocol
Package protocol implements EPay V1 and V2 using Go's standard library.
|
Package protocol implements EPay V1 and V2 using Go's standard library. |
|
stripe
Package stripe implements the Stripe payment protocol: payment intents and their payment sheets, customers, webhook endpoints and signed webhook events.
|
Package stripe implements the Stripe payment protocol: payment intents and their payment sheets, customers, webhook endpoints and signed webhook events. |
|
Package portal implements the guest storefront subdomain of the billing module: guest pre-orders, gateway/balance checkout, order status polling with session exchange, and the public plan/payment listings.
|
Package portal implements the guest storefront subdomain of the billing module: guest pre-orders, gateway/balance checkout, order status polling with session exchange, and the public plan/payment listings. |
|
Package pricing decides what an order costs.
|
Package pricing decides what an order costs. |
|
Package repo holds the billing module's repository implementations over GORM: orders with their event outbox, payment methods, coupons, and the wallet and withdrawal rows.
|
Package repo holds the billing module's repository implementations over GORM: orders with their event outbox, payment methods, coupons, and the wallet and withdrawal rows. |
|
Package settle holds the one settlement primitive shared by the checkout and payment-callback subdomains: marking a gateway-verified payment as paid and enqueueing activation.
|
Package settle holds the one settlement primitive shared by the checkout and payment-callback subdomains: marking a gateway-verified payment as paid and enqueueing activation. |
|
Package userorder implements the user-facing order query subdomain of the billing module.
|
Package userorder implements the user-facing order query subdomain of the billing module. |
|
Package v2 implements the V2 order orchestration subdomain of the billing module: idempotent create-and-checkout, guest checkout capabilities, the SSE event-stream tickets and the event stream itself.
|
Package v2 implements the V2 order orchestration subdomain of the billing module: idempotent create-and-checkout, guest checkout capabilities, the SSE event-stream tickets and the event stream itself. |
|
Package wallet implements the wallet subdomain of the billing module: the user-facing commission withdrawal, balance/commission statements and affiliate earnings overview, and the wallet reads and money movements other modules request from billing (ADR-001 rules 2 and 4) — the administrator's wallet edits, cancellation refunds and quota-task gifts, each committed in a billing transaction of its own.
|
Package wallet implements the wallet subdomain of the billing module: the user-facing commission withdrawal, balance/commission statements and affiliate earnings overview, and the wallet reads and money movements other modules request from billing (ADR-001 rules 2 and 4) — the administrator's wallet edits, cancellation refunds and quota-task gifts, each committed in a billing transaction of its own. |
Click to show internal directories.
Click to hide internal directories.