merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 51ed7cb4b6184c38476b5c5b5f545120df210b76
parent 4db25c53116277c38ba1a916b88b8552ac90ebad
Author: Florian Dold <florian.dold@gmail.com>
Date:   Thu,  1 Feb 2018 17:57:24 +0100

allow default instance for POST /order

Diffstat:
Msrc/backend/taler-merchant-httpd_proposal.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_proposal.c b/src/backend/taler-merchant-httpd_proposal.c @@ -274,7 +274,10 @@ proposal_put (struct MHD_Connection *connection, instance = json_string_value (json_object_get (order, "instance")); - if (NULL != instance) + + if (NULL == instance) + instance = "default"; + { // The frontend either fully specifieds the "merchant" field, or just gives // the backend the "instance" name and lets it fill out.