// backend/http-functions.js import { response } from 'wix-http-functions'; import { addToCurrentCart, updateCurrentCart } from 'wix-ecom-backend/current-cart'; import { createCheckoutFromCurrentCart } from 'wix-ecom-backend/current-cart'; import { getCheckoutUrl } from 'wix-ecom-backend/checkout'; // GET /_functions/metaCheckout?products=123:2,456:1 export async function get_metaCheckout(request) { try { const url = new URL(request.url); const raw = url.searchParams.get('products'); // Meta sends URL-encoded; Wix gives you raw here if (!raw) return badRequest('Missing products'); // 1) Clear the cart (set to empty) await updateCurrentCart({ lineItems: [] }); // clears any stale items // 2) Parse items like "123:2,456:1" const lineItems = []; decodeURIComponent(raw).split(',').forEach(pair => { const [idStr, qtyStr] = pair.split(':'); const productId = (idStr || '').trim(); const quantity = Number(qtyStr); if (productId && quantity > 0) { lineItems.push({ quantity, catalogReference: { // Wix Stores appId (keep as-is) appId: '1380b703-ce81-ff05-f115-39571d94dfcd', catalogItemId: productId // If you use variants, include variant info per your catalog setup. } }); } }); if (!lineItems.length) return badRequest('No valid products'); // 3) Add all items to the current visitor's cart await addToCurrentCart({ lineItems }); // 4) Create a checkout based on the current cart const { checkout } = await createCheckoutFromCurrentCart(); // 5) Get the native Wix checkout URL and 302 redirect the shopper there const { checkoutUrl } = await getCheckoutUrl(checkout._id); return redirect302(checkoutUrl); } catch (err) { console.error('metaCheckout error:', err); return response({ status: 500, headers: { 'Content-Type': 'application/json' }, body: { error: 'server_error' } }); } } function badRequest(msg) { return response({ status: 400, headers: { 'Content-Type': 'application/json' }, body: { error: msg } }); } function redirect302(location) { return response({ status: 302, // temporary redirect headers: { Location: location } }); }
top of page

We have combined Resveratrol with a powerful complex of peptides in this formulation to soften the appearance of aging and photodamage in the skin. Resveratrol, found naturally in the skin of red grapes, is a powerful antioxidant that helps in the fight against the appearance of aging as it’s considered a phytoestrogen with many valuable attributes. Resveratrol can be synthetically produced to be more stable and bioavailable in skincare formulations to provide brightening and strengthening abilities.

 

Net Wt. 1.66 oz. (47g)

50ml White Airless Jar

7.80”W x 1.75”H

 

Caution: Discontinue use if redness or irritation occurs. Do not ingest.

 

This statement has not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease.

Restore Resveratrol Rapid Reversal Peptide Complex

$135.00Price
Quantity
This is a pre-order item and will be shipped once back in stock.
  • Resveratrol – a potent antioxidant that lessens the appearance of temporary redness and helps the appearance of a brighter and more even skin tone.

    Peptide Complex – a custom blend of neuropeptides helps smooth the appearance of expression lines and wrinkle depth.

    Hyaluronic Acid, Apricot Kernel Oil, and Squalane – help moisturize, condition, and plump the skin in this elegant formulation.

You Might Also Like

bottom of page