fulfillment.php (757B)
1 <?php 2 // This file is in the public domain. 3 4 include 'helpers.php'; 5 6 session_start(); 7 8 if(pull($_SESSION, 'paid', false)){ 9 echo sprintf("<p>Thanks for your donation!</p> 10 <br><p>The order ID is: <b>%s</b>; use it to 11 <a href=\"backoffice.html\">track</a> your money, 12 or make <a href=\"/\">another donation!</a></p>", 13 $_SESSION['order_id']); 14 session_destroy(); 15 return; 16 } 17 18 // The user needs to pay, instruct the wallet to send the payment. 19 http_response_code(402); 20 header('X-Taler-Contract-Url: ' . url_rel('/generate-order.php')); 21 header('X-Taler-Contract-Query: ' . "fulfillment_url"); 22 header('X-Taler-Offer-Url: ' . url_rel('/donate.php')); 23 return; 24 ?>