diff --git a/src/channels/components/ChannelForm/AutomaticallyCompleteCheckouts.tsx b/src/channels/components/ChannelForm/AutomaticallyCompleteCheckouts.tsx index 1b4335894b8..0744609926b 100644 --- a/src/channels/components/ChannelForm/AutomaticallyCompleteCheckouts.tsx +++ b/src/channels/components/ChannelForm/AutomaticallyCompleteCheckouts.tsx @@ -1,5 +1,6 @@ import Link from "@dashboard/components/Link"; import { FormChange } from "@dashboard/hooks/useForm"; +import { DOCS_ULRS } from "@dashboard/links"; import { Box, Checkbox, Text } from "@saleor/macaw-ui-next"; import React from "react"; import { FormattedMessage } from "react-intl"; @@ -42,7 +43,7 @@ export const AutomaticallyCompleteCheckouts = ({ values={{ link: ( diff --git a/src/channels/views/ChannelCreate/ChannelCreate.tsx b/src/channels/views/ChannelCreate/ChannelCreate.tsx index 077e0011f92..89509534f8e 100644 --- a/src/channels/views/ChannelCreate/ChannelCreate.tsx +++ b/src/channels/views/ChannelCreate/ChannelCreate.tsx @@ -74,6 +74,7 @@ export const ChannelCreateView = () => { slug, warehousesIdsToAdd, warehousesToDisplay, + automaticallyCompleteCheckouts, }: FormData) => { const input: ChannelCreateInput = { name, @@ -93,6 +94,9 @@ export const ChannelCreateView = () => { deleteExpiredOrdersAfter, allowUnpaidOrders, }, + checkoutSettings: { + automaticallyCompleteFullyPaidCheckouts: automaticallyCompleteCheckouts, + }, }; return saveChannel(input, warehousesToDisplay); diff --git a/src/links.ts b/src/links.ts index 39306c97691..220e9c4e29c 100644 --- a/src/links.ts +++ b/src/links.ts @@ -1,2 +1,7 @@ export const TECHNICAL_HELP_CTA_URL = "https://www.getclockwise.com/c/rian-dillon-saleor-io/short-call-with-saleor"; + +export const DOCS_ULRS = { + TRANSACTIONS_AUTOMATIC_CHECKOUT_COMPLETION: + "https://docs.saleor.io/developer/payments/transactions#automatic-checkout-completion", +};