Removes the gift card from a specified checkout.
The removeGiftCard()
function returns a Promise that resolves to the updated checkout when the gift card is removed from the specified checkout.
Note: A checkout can only hold 1 gift card.
function removeGiftCard(_id: string): Promise<RemoveGiftCardResponse>;
ID of the checkout to remove the gift card from.
import { checkout } from "@wix/ecom";
async function removeGiftCard(id) {
const response = await checkout.removeGiftCard(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.