Business::iDEAL::Adyen

Backend for iDEAL payments through adyen.com
Download

Business::iDEAL::Adyen Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Menno Blom
  • Publisher web site:
  • http://search.cpan.org/~blom/

Business::iDEAL::Adyen Tags


Business::iDEAL::Adyen Description

Backend for iDEAL payments through adyen.com Business::iDEAL::Adyen is a Perl module that provides a backend to process iDEAL payments through adyen.com (the non-HPP (Hosted Payment Pages) way).A word of warning to start with (copied verbatim out of Adyen's iDEAL PDF):iDeal API Payments are not enabled by default. If you would like to process iDeal using this method, you can request this through the support channel at https://support.adyen.com.SYNOPSIS use Business::iDEAL::Adyen; # first setup the object my $ideal = Business::iDEAL::Adyen->new({ shared_secret => 'your very secure secret', skinCode => 's0m3C0d3', merchantAccount => 'your merchant account', test => 1, }); # then fetch a list of bank ids and bank codes my $banks = $ideal->banklist(); # after the user has chosen the bank he/she wants to use # it's time to fetch the redirect URL my $redir = $ideal->fetch({ # mandatory fields bank_id => 1000, paymentAmount => 1250, # optional fields merchantReference => 'your order ID', currencyCode => 'EUR', shopperLocale => 'nl', shipBeforeDate => '2010-01-01', sessionValidity => '2009-01-01T01:01:01Z', }); # redirect your user to his/her bank, like print redirect( $redir );After the user has finalized the payment, he/she'll be returned to your website (as defined in the Adyen skin) use Business::iDEAL::Adyen; use CGI qw/:standard/; # first setup the objects my $cgi = new CGI; my $ideal = Business::iDEAL::Adyen->new({ shared_secret => 'your very secure secret', skinCode => test => 1, }); # check user input if( $ideal->check( \%{$cgi->Vars} ) ) { # payment succeeded, so you probably want to update your # database with $cgi->param('merchantReference') } else { # payment was not successful # $ideal->error() contains what went wrong (most likely the # request has been tampered with and the signature is incorrect) } Requirements: · Perl


Business::iDEAL::Adyen Related Software