コード例 #1
0
ファイル: Checkout.php プロジェクト: Auwibana/babesk
 public function execute($dataContainer)
 {
     //no direct access
     defined('_AEXEC') or die("Access denied");
     require_once 'AdminCheckoutProcessing.php';
     require_once 'AdminCheckoutInterface.php';
     $checkoutInterface = new AdminCheckoutInterface($this->relPath);
     $checkoutProcessing = new AdminCheckoutProcessing($checkoutInterface);
     if ('POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST['card_ID'])) {
         $checkoutProcessing->Checkout($_POST['card_ID']);
     } else {
         $checkoutInterface->CardId();
     }
 }