commit 0b14a3f07166cceac1c2f6993c96b677f2fdae26
parent c63fcc52cabfdb098e058c000f507851f2308c84
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Sat, 17 Mar 2018 01:51:51 +0100
fulfillment URL mandatory.
Diffstat:
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/lib/test_merchant_api_twisted.c b/src/lib/test_merchant_api_twisted.c
@@ -268,17 +268,18 @@ run (void *cls,
{\"currency\":\"EUR\",\
\"value\":0,\
\"fraction\":50000000},\
- \"order_id\":\"2\",\
- \"refund_deadline\":\"\\/Date(0)\\/\",\
- \"pay_deadline\":\"\\/Date(99999999999)\\/\",\
- \"amount\":\
- {\"currency\":\"EUR\",\
- \"value\":5,\
- \"fraction\":0},\
- \"summary\": \"merchant-lib testcase\",\
- \"products\": [ {\"description\":\"ice cream\",\
- \"value\":\"{EUR:5}\"} ] }",
- NULL),
+ \"fulfillment_url\": \"https://example.com/\",\
+ \"order_id\":\"2\",\
+ \"refund_deadline\":\"\\/Date(0)\\/\",\
+ \"pay_deadline\":\"\\/Date(99999999999)\\/\",\
+ \"amount\":\
+ {\"currency\":\"EUR\",\
+ \"value\":5,\
+ \"fraction\":0},\
+ \"summary\": \"merchant-lib testcase\",\
+ \"products\": [ {\"description\":\"ice cream\",\
+ \"value\":\"{EUR:5}\"} ] }",
+ NULL),
/**
* Cause a 404 Not Found response code,
* due to a non existing merchant instance.
@@ -289,6 +290,7 @@ run (void *cls,
is->ctx,
MHD_HTTP_NOT_FOUND,
"{\"amount\":\"EUR:5\",\
+ \"fulfillment_url\": \"https://example.com/\",\
\"summary\": \"merchant-lib testcase\"}",
"non-existent-instance"),
@@ -336,6 +338,7 @@ run (void *cls,
{\"currency\":\"EUR\",\
\"value\":5,\
\"fraction\":0},\
+ \"fulfillment_url\": \"https://example.com/\",\
\"summary\": \"merchant-lib testcase\",\
\"products\": [ {\"description\":\"ice cream\",\
\"value\":\"{EUR:5}\"} ] }",
@@ -440,6 +443,7 @@ run (void *cls,
\"order_id\":\"11\",\
\"refund_deadline\":\"\\/Date(0)\\/\",\
\"pay_deadline\":\"\\/Date(99999999999)\\/\",\
+ \"fulfillment_url\": \"https://example.com/\",\
\"amount\":\
{\"currency\":\"EUR\",\
\"value\":2,\