First Bitpay Card Integration

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-10 15:29:31 -03:00
commit 54e3545f6b
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
71 changed files with 3181 additions and 0 deletions

View file

@ -306,6 +306,18 @@ angular.module('copayApp.services')
storage.remove('coinbaseTxs-' + network, cb);
};
root.setBitpayCard = function(network, data, cb) {
storage.set('bitpayCard-' + network, data, cb);
};
root.getBitpayCard = function(network, cb) {
storage.get('bitpayCard-' + network, cb);
};
root.removeBitpayCard = function(network, cb) {
storage.remove('bitpayCard-' + network, cb);
};
root.removeAllWalletData = function(walletId, cb) {
root.clearLastAddress(walletId, function(err) {
if (err) return cb(err);