Пример #1
0
 protected function getRecoveryParameters(PaymentOrder $order)
 {
     //?email=$email&eid=$idp&act=new&amount=$monto_paquete&type=product
     return array('email' => $order->getCustomerEmail(), 'eid' => $order->getElementId(), 'amount' => $order->getAmount(), 'type' => $order->getElementType(), 'act' => $order->getSystemAction(), 'o' => $order->getOrderId());
 }
 protected function notifyTransactionSuccess(PaymentOrder $order)
 {
     $mailer = sfContext::getInstance()->getMailer();
     $message = $mailer->compose();
     $message->setSubject('Su pago con tarjeta de credito ha sido exitoso');
     sfContext::getInstance()->getConfiguration()->loadHelpers('Partial');
     // Render message parts
     $message->setBody(get_partial('puntoventa/notifyTransactionSuccess', array('element' => $order->getElementId(), 'element_type' => $order->getElementType(), 'act' => $order->getSystemAction(), 'order' => $order->getOrderId(), 'amount' => $order->getAmount(), 'date' => $order->getDateTimeObject('updated_at')->format('d-m-Y H:i:s'))), 'text/html');
     $message->setFrom(array('*****@*****.**' => 'VendoRepuestos'));
     $message->setTo($order->getCustomerEmail());
     $mailer->send($message);
 }