diff --git a/src/Striper/Models/PaymentRequests.php b/src/Striper/Models/PaymentRequests.php index 9af94d3..0189778 100644 --- a/src/Striper/Models/PaymentRequests.php +++ b/src/Striper/Models/PaymentRequests.php @@ -68,7 +68,7 @@ public function validate() protected function beforeSave() { - $this->amount = (float) $this->amount; + //$this->amount = (float) $this->amount; foreach ($this->items as $key=>$item) { @@ -84,18 +84,18 @@ protected function beforeSave() public function sendChargeEmailClient($charge){ - $html = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/client_success_html.php' ); - $text = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/client_success_text.php' ); + // $html = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/client_success_html.php' ); + // $text = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/client_success_text.php' ); - \Dsc\System::instance()->get('mailer')->send($charge->{'client.email'}, 'Successfully Subscribed', array($html, $text) ); + //\Dsc\System::instance()->get('mailer')->send($charge->{'client.email'}, 'Successfully Subscribed', array($html, $text) ); } public function sendChargeEmailAdmin($charge){ - $html = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/admin_success_html.php' ); - $text = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/admin_success_text.php' ); + // $html = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/admin_success_html.php' ); + // $text = \Dsc\System::instance()->get( 'theme' )->renderView( 'Striper/Site/Views::paymentrequests/emails/admin_success_text.php' ); - \Dsc\System::instance()->get('mailer')->send($charge->{'client.email'}, 'Successfully Subscribed', array($html, $text) ); + // \Dsc\System::instance()->get('mailer')->send($charge->{'client.email'}, 'Successfully Subscribed', array($html, $text) ); } diff --git a/src/Striper/Site/Views/paymentrequest/read.php b/src/Striper/Site/Views/paymentrequest/read.php index 351f62a..98bd304 100644 --- a/src/Striper/Site/Views/paymentrequest/read.php +++ b/src/Striper/Site/Views/paymentrequest/read.php @@ -43,11 +43,12 @@ - amount())) { ?> + amount)) { ?>