CheckoutSubmitOptions

Interface

Request and spam-protection options for CheckoutService.placeOrder.

Extends: SubmitOptions

Property

Type

Optional

Description

fetchOptions

RequestInit

Yes

Raw fetch() options merged into this checkout request, such as an<br>AbortSignal or custom trace headers.

formStartedAt

number

Yes

When the buyer started checkout, in Unix milliseconds. By default the SDK sends a<br>time that passes the site's default minimum delay; pass the real time if the site<br>raised it. Too early fails with RATE_SUBMISSION_TOO_FAST, too old with<br>RATE_SUBMISSION_EXPIRED.

locale

string

Yes

The buyer's language tag, defaulting to the client locale. Order.locale takes<br>the cart's language when set, else this tag, else the site's default language.

recaptchaToken

string

Yes

reCAPTCHA token, required when the site enables reCAPTCHA. For v3, mint it with<br>{ action: 'checkout' }: a token for another action fails with apiCode<br>SPAM_RECAPTCHA_FAILED.