Business::PayPoint::MCPE - PayPoint: Merchant Card Payment Engine
use Business::PayPoint::MCPE; my $bpm = Business::PayPoint::MCPE->new( TestMode => 1, InstID => '123456', ); my %data = $bpm->payment( CartID => 654321, Desc => 'description of goods', Amount => '10.00', Currency => 'GBP', CardHolder => 'Joe Bloggs', Postcode => 'BA12BU', Email => 'test@paypoint.net', CardNumber => '1234123412341234', CV2 => '707', ExpiryDate => '0616', CardType => 'VISA', Country => 'GB', ); print Dumper(\%data); use Data::Dumper;
Business::PayPoint::MCPE is for https://www.paypoint.net/assets/guides/MCPE_Freedom+IMA_2.3.pdf
required.
1 or 0. default is 0.
my %data = $bpm->payment( CartID => 654321, Desc => 'description of goods', Amount => '10.00', Currency => 'GBP', CardHolder => 'Joe Bloggs', Postcode => 'BA12BU', Email => 'test@paypoint.net', CardNumber => '1234123412341234', CV2 => '707', ExpiryDate => '0616', CardType => 'VISA', Country => 'GB', ); print Dumper(\%data);
my $TransID = $data{TransID}; # from above payment my $SecurityToken = $data{SecurityToken}; my %data = $bpm->refund( TransID => $TransID, SecurityToken => $SecurityToken, Amount => '5.00', );
my $TransID = $data{TransID}; # from above payment my $SecurityToken = $data{SecurityToken}; my %data = $bpm->repeat( TransID => $TransID, SecurityToken => $SecurityToken, Amount => '5.00', );
my %data = $bpm->capture( TransID => $TransID, SecurityToken => $SecurityToken, Amount => '5.00', ); print Dumper(\%data);
PreAuth Capture
my %data = $bpm->void( TransID => $TransID, SecurityToken => $SecurityToken, Amount => '5.00', ); print Dumper(\%data);
PreAuth Void
my %data = $bpm->void( ScheduleID => $ScheduleID ); print Dumper(\%data);
Subscription Cancellation
my %data = $bpm->confirm( CartID => $CartID ); print Dumper(\%data);
Transaction Confirm
my %data = $bpm->nonauth( CartID => $CartID, Desc => 'description of goods', Amount => '10.00', Currency => 'GBP', PaymentType => 'NETELLER', PaymentDetail => "450000000001", Postcode => 'BA12BU', Email => 'test@paypoint.net', Country => 'GB', ); print Dumper(\%data);
Fayland Lam <fayland@gmail.com>
Copyright 2014- Fayland Lam
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Business::PayPoint::MCPE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::PayPoint::MCPE
CPAN shell
perl -MCPAN -e shell install Business::PayPoint::MCPE
For more information on module installation, please visit the detailed CPAN module installation guide.