I'm running PrestaShop 1.6, and I'm trying to add an order... I started with creating the cart, and that seems to be fine now (I do get back a cart_id, however, I do not see any carts in my PrestaShop back-end)... Next I make the order, I did not know which fields of the order object were required, so I worked with trial-and-error, but after I added the Payment property string, I'm only getting a NullReferencException from the Entity object...
Below you find a snippet of my code, all the IDs (and the secure_key) I use are valid:
I'm running PrestaShop 1.6, and I'm trying to add an order... I started with creating the cart, and that seems to be fine now (I do get back a cart_id, however, I do not see any carts in my PrestaShop back-end)... Next I make the order, I did not know which fields of the order object were required, so I worked with trial-and-error, but after I added the Payment property string, I'm only getting a NullReferencException from the Entity object...
Below you find a snippet of my code, all the IDs (and the secure_key) I use are valid:
`cart cartToSubmit = new cart() { id_currency = currencyId, id_lang = languageId, id_customer = customerId, id_address_delivery = customerAddressId, id_address_invoice = customerAddressId };