- Changed Cash plugin to use processTransaction

- Added (as of yet empty) notification templates
- Fixed a typo in sendNotification
This commit is contained in:
Martin Kamerbeek 2008-04-01 14:22:59 +00:00
parent a5d3403bcc
commit ec8bcd5ff8
3 changed files with 3 additions and 11 deletions

View file

@ -235,13 +235,8 @@ sub www_pay {
my $billingAddress = $self->getBillingAddress( $session->scratch->get( 'ShopPayDriverCash_billingAddressId' ) );
# Create a transaction and complete the purchase
my $transaction = WebGUI::Shop::Transaction->create( $session, {
cart => $cart,
paymentAddress => $billingAddress,
paymentMethod => $self,
});
$transaction->completePurchase( $cart, 'CASH', 'OK', 'Cash payment' );
# Complete the transaction
$self->processTransaction( $billingAddress );
return $session->style->userStyle('Thank you for ordering');
}