diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-11-19 20:43:54 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2015-11-19 20:43:54 +0100 |
commit | 56544e30627d5e9dc0b71408e2ace74b1fe66f8a (patch) | |
tree | 4250b69c283d202100bc8a745c597641f43ed510 /src/frontend/fullfillment.php | |
parent | 03bf693258b5d64e91abee77310e70e9804b775b (diff) | |
download | merchant-56544e30627d5e9dc0b71408e2ace74b1fe66f8a.tar.gz merchant-56544e30627d5e9dc0b71408e2ace74b1fe66f8a.tar.bz2 merchant-56544e30627d5e9dc0b71408e2ace74b1fe66f8a.zip |
Showing ffillment page only after a successful payment,
using sessions. Removing double print of status code in
case of a contract's generation failure.
Diffstat (limited to 'src/frontend/fullfillment.php')
-rw-r--r-- | src/frontend/fullfillment.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/fullfillment.php b/src/frontend/fullfillment.php index ced9a183..d7677aa7 100644 --- a/src/frontend/fullfillment.php +++ b/src/frontend/fullfillment.php @@ -37,12 +37,12 @@ if ($_GET['backend_test'] == 'no') } session_start(); -$receiver = $_SESSION['receiver']; -if (! $receiver) - echo "Please buy something before landing here!"; + +if (! isset ($_SESSION['payment_ok'])) + echo "Please land here after a successful payment!"; else - echo "Thanks for donating to " . $receiver; + echo "Thanks for donating to " . $_SESSION['receiver']; ?> |