first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
class stPaypalFrontendComponents extends sfComponents
|
||||
{
|
||||
public function executeShowPayment()
|
||||
{
|
||||
$order = stPaymentType::getOrderInSummary();
|
||||
|
||||
$url = $this->getContext()->getController()->genUrl('@stPaypalSetExpressCheckout?order_id=' . $order->getId() . '&order_hash=' . $order->getHashCode());
|
||||
|
||||
$this->getContext()->getController()->redirect($url);
|
||||
|
||||
throw new sfStopException();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user