Fixing stuff in the ITranasct plugin. It does process non-recurrong payments correctly now

This commit is contained in:
Martin Kamerbeek 2008-04-16 21:39:09 +00:00
parent c0f2c2c3c6
commit c1cab2299c
2 changed files with 49 additions and 16 deletions

View file

@ -495,10 +495,10 @@ sub processTransaction {
my $cart = $self->getCart;
my $transaction = WebGUI::Shop::Transaction->create($self->session,{
paymentMethod => $self,
paymentAddress => $paymentAddress,
# paymentAddress => $paymentAddress,
cart => $cart,
});
my ($success, $transactionCode, $statusCode, $statusMessage) = $self->processPayment;
my ($success, $transactionCode, $statusCode, $statusMessage) = $self->processPayment( $transaction );
if ($success) {
$transaction->completePurchase($transactionCode, $statusCode, $statusMessage);
$cart->onCompletePurchase;