Notification Service

Electronic notification is now demanded by most banking customers, especially those taking advantage of online banking. For this reason, Token.io notifies its members of important events and information updates related to its Open Banking services. For example, if a merchant uses Token.io to request payment from a member, Token.io creates a notification to obtain member approval. The bank can subscribe to these notifications and then appropriately relay them to its bank customers via its own push, SMS, and/or email messaging capability. Using the Bank Integration SDK’s NotificationService, Token.io pushes these notifications to the bank for delivery to the member.

Bank implementation of the SDK's NotificationService is optional.

When implemented, the NotificationService has just one one method, notify, for which there are two parameters — a Subscriber with delivery information and a Notification containing the content.

Calling subscriber.getHandlerInstructionsMap() gets the optional key-value pairs set when subscribing to the member’s notifications. Hence, if the bank subscribes to a member with handler instructions like {"bankAccountNumber":"CH1234567"}, the notify method can call subscriber.getHandlerInstructionsMap().get("bankAccountNumber") to contact the member accordingly.

public interface NotificationService {

    void notify(Notification notification, Subscriber subscriber);

}

See the following API references for additional detail: