0.02: declare dependency on File::Slurp
[Business-OnlinePayment-CardFortress.git] / lib / Business / OnlinePayment / CardFortress.pm
index db6f422..19f3e53 100644 (file)
@@ -9,7 +9,7 @@ use File::Slurp;
 use MIME::Base64;
 use Crypt::OpenSSL::RSA;
 
-our $VERSION = 0.01;
+our $VERSION = 0.02;
 
 sub _info {
   {
@@ -92,7 +92,7 @@ sub submit {
     my $challenge = decode_base64($response{'card_challenge'});
 
     #here is the hardest part to implement at each client side
-    my $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($self->private_key);
+    my $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($private_key);
     my $response = $rsa_priv->decrypt($challenge);
 
     #try the transaction again with the challenge response