summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-03-17 01:51:51 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-03-17 01:51:51 +0100
commit0b14a3f07166cceac1c2f6993c96b677f2fdae26 (patch)
tree6a9ea652d16e8ca2acd896ed78213bf5319cb4d7
parentc63fcc52cabfdb098e058c000f507851f2308c84 (diff)
downloadmerchant-0b14a3f07166cceac1c2f6993c96b677f2fdae26.tar.gz
merchant-0b14a3f07166cceac1c2f6993c96b677f2fdae26.tar.bz2
merchant-0b14a3f07166cceac1c2f6993c96b677f2fdae26.zip
fulfillment URL mandatory.
-rw-r--r--src/lib/test_merchant_api_twisted.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/lib/test_merchant_api_twisted.c b/src/lib/test_merchant_api_twisted.c
index 6ab7d194..963bbfd2 100644
--- 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,\