Fixing stuff in the ITranasct plugin. It does process non-recurrong payments correctly now
This commit is contained in:
parent
c0f2c2c3c6
commit
c1cab2299c
2 changed files with 49 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue