diff options
Diffstat (limited to 'php/generate-contract.php')
-rw-r--r-- | php/generate-contract.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/php/generate-contract.php b/php/generate-contract.php index c94ca8b..20c6331 100644 --- a/php/generate-contract.php +++ b/php/generate-contract.php @@ -5,10 +5,9 @@ include 'backend.php'; include 'error.php'; + $transaction_id = rand(1,90000); // simplified, do not do this! // this variable is the JSON of a contract proposal, // see https://api.taler.net/api-merchant.html#post--contract - // the second parameter is the transaction id - $transaction_id = rand(1,90000); // simplified, do not do this! $proposal = make_contract($transaction_id, new DateTime('now')); // Here the frontend POSTs the proposal to the backend $response = post_to_backend("/contract", $proposal); |