Business::BancaSella

A wrapper for Banca Sella online payment system
Download

Business::BancaSella Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Bruni Emiliano
  • Publisher web site:
  • http://search.cpan.org/~ebruni/

Business::BancaSella Tags


Business::BancaSella Description

A wrapper for Banca Sella online payment system Banca Sella is an italian bank which offer an integrated and secure online payment system using secure web geteway over SSL.This module is a wrapper that built web request and receive web response from this payment system encoding and decoding it in an object orientated environment.The Business::BancaSella Perl module can be used in an e-commerce environment web site to support online payment via credit cards.SYNOPSISThese are only some examples. For more examples, see later...During encoding... use Business::BancaSella; use Business::BancaSella::Ric; use CGI qw/:standard/; my $ric = new Business::BancaSella::Ric::Mysql( dbh => $DBI_handle, tableName => $table_name, fieldName => $field_name ); my $otp = $ric->extract; my $bs = new Business::BancaSella::Encode( type => 'gestpay', id => $internal_id, shopping => $shopping, otp => $otp, amount => $amount, language => 'english', currency => 'eur', ); my $bsUri = $bs->uri; redirect($bsUri);During decoding... use Business::BancaSella::Decode; use Business::BancaSella::Ris; use CGI; my $cgi = new CGI(); my $qs = $cgi->query_string; my $bs = new Business::BancaSella::Decode( type => 'gestpay', 'query_string' => $qs ); my $ric = new Business::BancaSella::Ris::Mysql( dbh => $DBI_handle, tableName => $table_name, fieldName => $field_name ); if (!$ric->check($bs->otp)) { &error_page; } else { $ric->remove($bs->otp); if ($bs->result) { &payment_ok; } else { &payment_ko; } } Requirements: · Perl


Business::BancaSella Related Software