forked from crowetic/commerce
Don't get redirect_urls
This commit is contained in:
parent
f498a708d3
commit
0b6216259f
@ -11,9 +11,7 @@ const getCart: CartHandlers['getCart'] = async ({
|
|||||||
let result: { data?: Cart } = {}
|
let result: { data?: Cart } = {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
result = await config.storeApiFetch(
|
result = await config.storeApiFetch(`/v3/carts/${cartId}`)
|
||||||
`/v3/carts/${cartId}?include=redirect_urls`
|
|
||||||
)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof BigcommerceApiError && error.status === 404) {
|
if (error instanceof BigcommerceApiError && error.status === 404) {
|
||||||
// Remove the cookie if it exists but the cart wasn't found
|
// Remove the cookie if it exists but the cart wasn't found
|
||||||
|
@ -35,11 +35,6 @@ export type Cart = {
|
|||||||
base_amount: number
|
base_amount: number
|
||||||
discount_amount: number
|
discount_amount: number
|
||||||
cart_amount: number
|
cart_amount: number
|
||||||
redirect_urls: {
|
|
||||||
cart_url: string
|
|
||||||
checkout_url: string
|
|
||||||
embedded_checkout_url: string
|
|
||||||
}
|
|
||||||
line_items: {
|
line_items: {
|
||||||
custom_items: any[]
|
custom_items: any[]
|
||||||
digital_items: any[]
|
digital_items: any[]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user