Files
commerce/api/checkout/null/authorize.go
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

19 lines
489 B
Go

package null
import (
"github.com/hanzoai/commerce/models/order"
"github.com/hanzoai/commerce/models/organization"
"github.com/hanzoai/commerce/models/payment"
"github.com/hanzoai/commerce/models/types/accounts"
"github.com/hanzoai/commerce/models/user"
)
func Authorize(org *organization.Organization, ord *order.Order, usr *user.User, pay *payment.Payment) error {
// Deprecated
pay.Type = accounts.NullType
pay.Account.Type = accounts.NullType
pay.Live = true
return nil
}