Create "Checkout Preferences" with several Items. Node SDK

0

Good, some I use the post to "/ checkout / preferences" from the node sdk, with something like:

var preference = {
        "items": [
            {
                "title": "Producto1",
                "quantity": 1,
                "currency_id": "ARS",
                "unit_price": 10
            },
            {
                "title": "Producto2",
                "quantity": 1,
                "currency_id": "ARS",
                "unit_price": 20
            }
        ]
    };

mp.createPreference (preference);

By sending that, I am correctly taking the checkout sum, but only with the title of the 1st item.

I hope to redirect to mp and list the details items added to the cart.

Thank you very much.

    
asked by Salva 16.11.2017 в 06:43
source

0 answers