From 8e21e52a0d05d1f648c2492cab6a398ac9ff34d5 Mon Sep 17 00:00:00 2001
From: AmmoniteNetworks
Date: Wed, 9 Jul 2014 02:12:22 +0000
Subject: [PATCH] anything new
---
src/Striper/Models/PaymentRequests.php | 14 +++++++-------
src/Striper/Site/Views/paymentrequest/read.php | 7 ++++---
src/Striper/Site/Views/paymentrequest/success.php | 11 ++++++++++-
3 files changed, 21 insertions(+), 11 deletions(-)
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)) { ?>
Total: amount()/100),2));?>
+ echo '$'. number_format(($paymentrequest->amount/100),2);?>
+
@@ -61,7 +62,7 @@
+ data-name="title; ?>" data-description="" data-email="{'client.email'}; ?>" data-allow-remember-me="false" data-amount="amount; ?>">
diff --git a/src/Striper/Site/Views/paymentrequest/success.php b/src/Striper/Site/Views/paymentrequest/success.php
index 3e98b8d..585b965 100644
--- a/src/Striper/Site/Views/paymentrequest/success.php
+++ b/src/Striper/Site/Views/paymentrequest/success.php
@@ -1 +1,10 @@
- Your Payment was Succesful
\ No newline at end of file
+
+
+
+
+
Success!
+
+ Everything is well, you will receive an email with your reciept.
+
+
+
\ No newline at end of file