Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show when we sent a protest email automatically

  • Loading branch information...
commit 3c9a6fbcb48fd2fc66ff1a46cb0b9f95e5bdc2d0 1 parent 5c3736e
Luke Closs authored
Showing with 5 additions and 3 deletions.
  1. +2 −2 lib/Biopay/PaymentProcessor.pm
  2. +3 −1 views/email/receipt.tt
View
4 lib/Biopay/PaymentProcessor.pm
@@ -1,10 +1,10 @@
package Biopay::PaymentProcessor;
-use Moose;
-use methods;
use Dancer::Plugin::Email;
use Dancer ':syntax';
+use Moose;
use LWP::UserAgent;
use URI::Query;
+use methods;
has 'ua' => (is => 'ro', isa => 'LWP::UserAgent', lazy_build => 1);
has 'payment_args' => (is => 'ro', isa => 'HashRef', lazy_build => 1);
View
4 views/email/receipt.tt
@@ -1,6 +1,8 @@
<h1>Receipt: $[% total_price %] for [% total_litres %]L of clean, green Biodiesel!</h1>
<p>Hello [% member.name %]!</p>
-[% IF !member.in_protest %]
+[% IF member.in_protest %]
+<p><strong>Thanks for joining our protest against the bogus tax! We've sent another email on your behalf!</strong></p>
+[% ELSE %]
<p><a href="[% member.protest_link %]">Click here to help protest the bogus tax attack on our Biodiesel!</a> It'll only take a moment!</p>
[% END %]
<p>
Please sign in to comment.
Something went wrong with that request. Please try again.