Refactor buying bitcoin

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-12 23:49:55 -03:00
commit a5303396c1
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 102 additions and 63 deletions

View file

@ -395,7 +395,8 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
amount: data.amount,
currency: data.currency,
payment_method: data.payment_method || null,
commit: data.commit || false
commit: data.commit || false,
quote: data.quote || false
};
$http(_post('/accounts/' + accountId + '/buys', token, data)).then(function(data) {
$log.info('Coinbase Buy Request: SUCCESS');