4
0
forked from crowetic/commerce

Don't get redirect_urls

This commit is contained in:
Luis Alvarez 2020-10-14 19:27:01 -05:00
parent f498a708d3
commit 0b6216259f
2 changed files with 1 additions and 8 deletions

View File

@ -11,9 +11,7 @@ const getCart: CartHandlers['getCart'] = async ({
let result: { data?: Cart } = {}
try {
result = await config.storeApiFetch(
`/v3/carts/${cartId}?include=redirect_urls`
)
result = await config.storeApiFetch(`/v3/carts/${cartId}`)
} catch (error) {
if (error instanceof BigcommerceApiError && error.status === 404) {
// Remove the cookie if it exists but the cart wasn't found

View File

@ -35,11 +35,6 @@ export type Cart = {
base_amount: number
discount_amount: number
cart_amount: number
redirect_urls: {
cart_url: string
checkout_url: string
embedded_checkout_url: string
}
line_items: {
custom_items: any[]
digital_items: any[]