diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-08-23 15:56:26 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-08-23 15:56:26 +0200 |
commit | 1060315c9d9990ee76907cbd7a0e73c172be9a84 (patch) | |
tree | 4e6ba8edf5123c1fbb205dc977ca4d905a5da41b | |
parent | fff1f61f49347d2c13f4a20322eaa56fe0854c12 (diff) |
contract offer with simplified API
-rw-r--r-- | articles/ui/figs/taler-contract.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/articles/ui/figs/taler-contract.js b/articles/ui/figs/taler-contract.js index aaf4b79c3..3c0079226 100644 --- a/articles/ui/figs/taler-contract.js +++ b/articles/ui/figs/taler-contract.js @@ -33,3 +33,10 @@ function taler_pay(form) { }; contract_request.send(); } + +<script src="taler-wallet-lib.js"></script> +<script> + taler.offerContractFrom("https://myshop/products/article/42", (err) => { + alert("Error while offering contract"); + }); +</script> |