gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-web-common] branch master updated: export internalPa


From: gnunet
Subject: [GNUnet-SVN] [taler-web-common] branch master updated: export internalPay for wallet
Date: Sun, 12 Feb 2017 21:50:03 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository web-common.

The following commit(s) were added to refs/heads/master by this push:
     new 5e97539  export internalPay for wallet
5e97539 is described below

commit 5e975391f8d72d53004fd884a0874879c778a04a
Author: Florian Dold <address@hidden>
AuthorDate: Sun Feb 12 21:50:00 2017 +0100

    export internalPay for wallet
---
 taler-wallet-lib.js | 12 ++++++++----
 taler-wallet-lib.ts | 12 ++++++++----
 2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/taler-wallet-lib.js b/taler-wallet-lib.js
index d1975fd..9fffc3f 100644
--- a/taler-wallet-lib.js
+++ b/taler-wallet-lib.js
@@ -283,6 +283,13 @@ var taler;
         contract_request.send();
     }
     taler.internalOfferContractFrom = internalOfferContractFrom;
+    function internalPay(p) {
+        callWallet("taler-pay", p, function (resp) {
+            // either we get a response here, or the wallet will redirect the 
browser
+            handlePaymentResponse(resp, resp.pay_url);
+        });
+    }
+    taler.internalPay = internalPay;
     function pay(p) {
         if (!installed) {
             logVerbose && console.log("delaying call to 'pay' until GNU Taler 
wallet is present");
@@ -291,10 +298,7 @@ var taler;
             });
             return;
         }
-        callWallet("taler-pay", p, function (resp) {
-            // either we get a response here, or the wallet will redirect the 
browser
-            handlePaymentResponse(resp, resp.pay_url);
-        });
+        internalPay(p);
     }
     taler.pay = pay;
     function initTaler() {
diff --git a/taler-wallet-lib.ts b/taler-wallet-lib.ts
index 7a76771..64b6e62 100644
--- a/taler-wallet-lib.ts
+++ b/taler-wallet-lib.ts
@@ -326,6 +326,13 @@ namespace taler {
     pay_url: string;
   }
 
+  export function internalPay(p: payDetail) {
+    callWallet("taler-pay", p, (resp: any) => {
+      // either we get a response here, or the wallet will redirect the browser
+      handlePaymentResponse(resp, resp.pay_url);
+    });
+  }
+
   export function pay(p: PayDetail) {
     if (!installed) {
       logVerbose && console.log("delaying call to 'pay' until GNU Taler wallet 
is present");
@@ -334,10 +341,7 @@ namespace taler {
       });
       return;
     }
-    callWallet("taler-pay", p, (resp: any) => {
-      // either we get a response here, or the wallet will redirect the browser
-      handlePaymentResponse(resp, resp.pay_url);
-    });
+    internalPay(p);
   }
 
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]