Handling NOC's via Push Notifications
When a bank account transaction gets a Notice of Change (NOC) Base Commerce will send a push notification to the merchant letting them know. The push notification will include the transaction which had a NOC and the transaction will have the updated account and/or routing number updated on it.
Extra Push Notification information here: https://confluence.basecommerce.net/bctd/push-notification-platform
if( o_push_notification.isNotificationType( PushNotification.XS_PN_TYPE_ACH_CHANGE ) ) { BankAccountTransaction o_bat = o_push_notification.getBankAccountTransaction(); if( o_bat != null ) { if( o_bat.getNocCode().equals("C01") ) { System.out.println( o_bat.getAccountNumber() ); } else if( o_bat.getNocCode().equals("C02") ) { System.out.println( o_bat.getRoutingNumber() ); } else if( o_bat.getNocCode().equals("C03") ) { System.out.println( o_bat.getAccountNumber() ); System.out.println( o_bat.getRoutingNumber() ); } }