added balanced debugging
This commit is contained in:
parent
797feac52c
commit
903736b0e1
@ -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;
|
||||
|
||||
@ -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 ] );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user