View as Markdown

SDK reference · Verifiers

CheckoutBinding

CheckoutBinding in go.provenanceauth.com/verify (Go), Verifiers. CheckoutBinding normalizes a merchant's order record into the exact object a cart-bound intent token's payload_hash covers (a port of checkoutBinding in @provenanceauth/rails/checkout): binding v1, the rich cart (v2: variants, pictures, adjustments, fulfillment, return policy) and 's v3, the merchant's declared MCC and country (merchant.mcc, four digits; merchant.country, the ISO 3166-1 numeric code) and each line's service_period (start and end, a date or a date-time with an offset, kept exactly as given).

Signature

provenanceverify.CheckoutBinding(order map[string]any) (map[string]any, error)

Parameters

ordermap[string]anyRequired

Returns

(map[string]any, error)

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.