added balanced debugging

This commit is contained in:
arzynik 2014-10-02 09:32:43 -07:00
parent 797feac52c
commit 903736b0e1
2 changed files with 3 additions and 0 deletions

View File

@ -863,6 +863,7 @@ NGApp.controller('DriversPaymentFormCtrl', function( $scope, StaffPayInfoService
account_number: $scope.bank.account_number,
routing_number: $scope.bank.routing_number };
StaffPayInfoService.bankAccount( payload, function( json ){
console.debug('Saving bank info response: ', arguments);
if( json.href ){
json.id_admin = $scope.basicInfo.id_admin;
json.legal_name_payment = $scope.basicInfo.legal_name_payment;

View File

@ -98,7 +98,9 @@ NGApp.factory( 'StaffPayInfoService', function( $resource, $routeParams, ConfigS
if( !json.error && json.processor ){
var marketplaceUri = json.processor.balanced;
balanced.init( marketplaceUri );
console.debug('Creating bank account: ', payload);
balanced.bankAccount.create( payload, function( response ) {
console.debug('Balanced response : ', arguments);
// Successful tokenization
if( response.status_code === 201 ) {
callback( response.bank_accounts[ 0 ] );