summaryrefslogtreecommitdiff
path: root/examples/frontend_blog/essay_cc-fulfillment.php
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-02-23 17:12:18 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-02-23 17:12:18 +0100
commitaf03e45182f4f450621ce98a6bd23bfaf2671c59 (patch)
tree73f657e45b51dc3dfca4de0dbef08ab9d23f21e9 /examples/frontend_blog/essay_cc-fulfillment.php
parentf8c673dd6ae62fe61ea0c6522c882b1ceb7b6e61 (diff)
downloadmerchant-af03e45182f4f450621ce98a6bd23bfaf2671c59.tar.gz
merchant-af03e45182f4f450621ce98a6bd23bfaf2671c59.tar.bz2
merchant-af03e45182f4f450621ce98a6bd23bfaf2671c59.zip
addressing #4197, to test
Diffstat (limited to 'examples/frontend_blog/essay_cc-fulfillment.php')
-rw-r--r--examples/frontend_blog/essay_cc-fulfillment.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/frontend_blog/essay_cc-fulfillment.php b/examples/frontend_blog/essay_cc-fulfillment.php
new file mode 100644
index 00000000..5890c03d
--- /dev/null
+++ b/examples/frontend_blog/essay_cc-fulfillment.php
@@ -0,0 +1,18 @@
+<?php
+ include '../../copylib/util.php';
+ include './blog_lib.php';
+
+ $article = get($_GET['article']);
+ if (null == $article){
+ http_response_code(400);
+ echo "Bad request (no article specified)";
+ return;
+ }
+
+ session_start();
+ $payments = &pull($_SESSION, "payments", array());
+ $payments[$article] = array("ispayed" => true);
+ $fulfillment_url = url_rel("essay_fulfillment.php");
+ header("Location: $fulfillment_url");
+ die();
+?>