- Added tests for Pay
- Fixed some tests/code for PayDriver - Added i18n for PayDriver - Added a really, really bare-bones Cash plugin.
This commit is contained in:
parent
39a0b6ff1f
commit
60362cb747
7 changed files with 415 additions and 23 deletions
56
lib/WebGUI/Shop/PayDriver/Cash.pm
Normal file
56
lib/WebGUI/Shop/PayDriver/Cash.pm
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package WebGUI::Shop::PayDriver::Cash;
|
||||
|
||||
use strict;
|
||||
|
||||
use WebGUI::Shop::PayDriver;
|
||||
use WebGUI::Exception;
|
||||
|
||||
use base qw/WebGUI::Shop::PayDriver/;
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
sub definition {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
my $definition = shift;
|
||||
|
||||
my $i18n = WebGUI::International->new($session, 'PayDriver_Cash');
|
||||
|
||||
tie my %fields, 'Tie::IxHash';
|
||||
%fields = (
|
||||
sendReceipt => {
|
||||
fieldType => 'yesNo',
|
||||
label => $i18n->echo('sendReceipt'),
|
||||
hoverHelp => $i18n->echo('sendReceipt help'),
|
||||
defaultValue => 0,
|
||||
},
|
||||
);
|
||||
|
||||
push @{ $definition }, {
|
||||
name => $i18n->echo('Cash'),
|
||||
fields => \%fields,
|
||||
};
|
||||
|
||||
return $class->SUPER::definition($session, $definition);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
sub getButton {
|
||||
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
sub www_collectPaymentInfo {
|
||||
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
sub www_displayStatus {
|
||||
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue