summaryrefslogtreecommitdiff
path: root/ord.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-13 13:25:25 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-13 13:25:25 +0800
commit38dbb494228261735509f9bc2fbe543ed1e0c04e (patch)
tree97d3aa2efd20a0e962d28f8cf69218d3a0a87456 /ord.c
parentf7a913ed569b0c0d7d3b25a18efbf994fe713663 (diff)
Checkout takes a copy of the member struct
Diffstat (limited to 'ord.c')
-rw-r--r--ord.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ord.c b/ord.c
index c793a48..38a6aba 100644
--- a/ord.c
+++ b/ord.c
@@ -12,24 +12,24 @@ void interchange_ord_order(const char *sku,
}
void interchange_ord_checkout(const char *order_profile,
- const struct interchange_member *member,
+ struct interchange_member member,
void (*handler)(interchange_response *))
{
request(handler, NULL, &(struct body){ 14, {
{ "mv_todo", "submit" },
{ "mv_action", "refresh" },
{ "mv_order_profile", order_profile },
- { "fname", member->fname },
- { "lname", member->lname },
- { "address1", member->address1 },
- { "address2", member->address2 },
- { "city", member->city },
- { "state", member->state },
- { "zip", member->zip },
- { "email", member->email },
- { "phone_day", member->phone_day },
- { "mv_same_billing", member->preferences.mv_same_billing? "1" : "0" },
- { "email_copy", member->preferences.email_copy? "1" : "0" }
+ { "fname", member.fname },
+ { "lname", member.lname },
+ { "address1", member.address1 },
+ { "address2", member.address2 },
+ { "city", member.city },
+ { "state", member.state },
+ { "zip", member.zip },
+ { "email", member.email },
+ { "phone_day", member.phone_day },
+ { "mv_same_billing", member.preferences.mv_same_billing? "1" : "0" },
+ { "email_copy", member.preferences.email_copy? "1" : "0" }
}}, "%s", "ord/checkout");
}