Skip to content
biticaretdevelopers

Reference

Checkout functions

Checkout function types and the scope each type requires.

This page is generated from the source code. A function's type is set by the function_type key in its extension config, and the app must request the corresponding required scope.

cart_transform

Expands, merges or updates cart lines before pricing stages run.

Scope needed
write_checkout_functions

Example

toml
function_type = "cart_transform"

discount

Adds discounts to the cart (pricing stage 2).

Scope needed
write_discounts

Example

toml
function_type = "discount"

fees

Adds extra fees (stage 4).

Scope needed
write_checkout_functions

Example

toml
function_type = "fees"

payment_methods

Hides or reorders payment methods.

Scope needed
write_checkout_functions

Example

toml
function_type = "payment_methods"

shipping_rates

Adds shipping options and rates (stage 3).

Scope needed
write_checkout_functions

Example

toml
function_type = "shipping_rates"