- SEE ALSO
- COPYRIGHT AND LICENSE
Finance::Bank::Bankwest::SessionFromLogin - create a session using a PAN and access code
This module is part of distribution Finance-Bank-Bankwest v1.2.8.
This distribution's version numbering follows the conventions defined at semver.org.
my $from_login = Finance::Bank::Bankwest::SessionFromLogin->new( pan => 12345678, access_code => 'LetMeIn123', ); # returns a Finance::Bank::Bankwest::Session object my $session = $from_login->session;
This module logs into Bankwest Online Banking using a supplied PAN (Personal Access Number) and access code, and sets up a Finance::Bank::Bankwest::Session object with the newly-created session.
"login" in Finance::Bank::Bankwest provides a slightly more convenient wrapper for this functionality.
The Personal Access Number (PAN). Required.
The access code associated with the provided PAN. Required.
If login with the provided credentials is successful, a Finance::Bank::Bankwest::Session instance.
May throw one of the following exceptions on failure:
if the remote server rejects the supplied PAN/access code combination.
if the remote server returns something unexpected, such as an "offline for maintenance" message or some sort of intermediate advertising pop-up. In both cases the remote server's response is available as an HTTP::Response object; see "response" in Finance::Bank::Bankwest::Error::WithResponse.
The location of the resource that accepts the provided PAN and access code and establishes the banking session. Use the default value during normal operation.
Alex Peters <email@example.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Alex Peters.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
The full text of the license can be found in the LICENSE file included with this distribution.