From b0ae674600b68d8b8fa1d522cb0f5366ee0f2cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 1 Dec 2020 17:09:16 +0800 Subject: Checkout function --- icclient/ord.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'icclient/ord.h') diff --git a/icclient/ord.h b/icclient/ord.h index 5195e81..a1dd4ea 100644 --- a/icclient/ord.h +++ b/icclient/ord.h @@ -10,6 +10,7 @@ struct icclient_ord_order { double subtotal; double shipping; double total_cost; + char *profile; size_t nitems; struct icclient_ord_item *items[]; }; @@ -27,6 +28,8 @@ extern "C" { */ void icclient_ord_order(const char *sku, const struct icclient_catalog *catalog, struct icclient_ord_order **orderptr); + void icclient_ord_checkout(struct icclient_ord_order *order, + struct icclient_member *member); void icclient_ord_free(struct icclient_ord_order *order); #ifdef __cplusplus -- cgit v1.2.3