summaryrefslogtreecommitdiff
path: root/examples/shop/generate_taler_contract.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shop/generate_taler_contract.php')
-rw-r--r--examples/shop/generate_taler_contract.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/examples/shop/generate_taler_contract.php b/examples/shop/generate_taler_contract.php
index fd241d41..213632b3 100644
--- a/examples/shop/generate_taler_contract.php
+++ b/examples/shop/generate_taler_contract.php
@@ -55,18 +55,20 @@ $fulfillment_url = url_rel("fulfillment.php")
. '&tid=' . $transaction_id;
- $contract = _generate_contract(array("amount_value" => $amount_value,
- "amount_fraction" => $amount_fraction,
- "currency" => $currency,
- "refund_delta" => 'P3M',
- "transaction_id" => $transaction_id,
- "description" => $desc,
- "product_id" => $p_id,
- "correlation_id" => "",
- "merchant_name" => "Kudos Inc.",
- "taxes" => array(),
- "now" => $now,
- "fulfillment_url" => $fulfillment_url));
+$contract = generate_contract(array(
+ "amount_value" => $amount_value,
+ "amount_fraction" => $amount_fraction,
+ "currency" => $currency,
+ "refund_delta" => 'P3M',
+ "transaction_id" => $transaction_id,
+ "description" => $desc,
+ "product_id" => $p_id,
+ "correlation_id" => "",
+ "merchant_name" => "Kudos Inc.",
+ "taxes" => array(),
+ "now" => $now,
+ "fulfillment_url" => $fulfillment_url)
+);
// pack the JSON for the contract