<?php

class ThankYouAction extends CartAction {
	
	public function execute($request) {
		$store = sfContext::getInstance()->getUser()->getAttribute('store');
		$this->containerCode = sfContext::getInstance()->getUser()->getAttribute('container');
		$this->checkoutData = sfContext::getInstance()->getUser()->getAttribute('checkoutData');
		$this->payForm = isset($this->checkoutData['transaction']) && isset($this->checkoutData['transaction']['secondary']) ? $this->checkoutData['transaction']['secondary'][0]['form'] : false;
		$this->currencyId = $store->currencyID;
		$this->backUrl = isset($this->checkoutData['backUrl']) ? $this->checkoutData['backUrl'] : false;
	}
	
}