Skip to content

isAddressRequired

Describes@ebitex/commerce-sdk 0.2.xSee the changelog:@ebitex/commerce-sdk

isAddressRequired(error): error is CommerceApiError & { detail: { missing: AddressField[] } }

True for the 409 address_required refusal of a checkout; error.detail.missing then names what to ask the shopper for.

unknown

error is CommerceApiError & { detail: { missing: AddressField[] } }