The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Finance::Bank::HDFC - Interface to the HDFC netbanking service

SYNOPSIS

  use Finance::Bank::HDFC;

  my $bank = Finance::Bank::HDFC->new;
  $bank->login(
    cust_id   => xxx,
    password  => xxx,
  );
  print $bank->get_balance . "\n";
  $bank->logout;
 

DESCRIPTION

This module provides an interface to the HDFC netbanking service at https://netbanking.hdfcbank.com/netbanking/

METHODS

new

Constructor for this class. Currently requires no arguments.

login

Login to the netbanking service. Requires following named parameters.

  • cust_id - Your HDFC customer ID

  • password - Your netbanking password

Returns 1 on success, -1 on failure.

get_balance

Retrieves your account balance. Returns -1 on failure.

logout

Logout from the netbanking service. Remember to always call this method at the end of your program or you may face difficulties logging in the next time.

Returns 1 on success, -1 on failure.

REQUIRES

LWP::UserAgent, Crypt::SSLeay

WARNING

This warning is from Simon Cozens' Finance::Bank::LloydsTSB, and seems just as apt here.

This is code for online banking, and that means your money, and that means BE CAREFUL. You are encouraged, nay, expected, to audit the source of this module yourself to reassure yourself that I am not doing anything untoward with your banking data. This software is useful to me, but is provided under NO GUARANTEE, explicit or implied.

AUTHOR

Rohan Almeida, <arcofdescent@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Rohan Almeida

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.