Skip to content
Permalink
Browse files

Code cleanup

  • Loading branch information...
jbelelieu committed Jul 16, 2018
1 parent fe01dd7 commit b1220570c2e0ed84ebd505fedb5a3cd4668853af
Showing with 0 additions and 8 deletions.
  1. +0 −8 pp-cart/checkout.php
@@ -64,7 +64,6 @@
}
} else {
// Update gateway
$cart->update_order_gateway($primary_gateway['0']['code']);
@@ -75,25 +74,18 @@
header('Location: ' . $ssl . '/pp-cart/payment.php');
exit;
}
// Not an API
else {
// Shipping?
$cart->check_for_shipping();
// Load gateway
$gateway = new $primary_gateway['0']['code'];
$link = $gateway->checkout();
// echo "REDIRECT:" . $link;
header("Location: " . $link);
exit;
}
}
}
}

0 comments on commit b122057

Please sign in to comment.
You can’t perform that action at this time.