Permalink
Browse files

shell out to send the receipt rather than creating another job

  • Loading branch information...
1 parent 60f5768 commit 9bce7203d4f20dc46794a9f2cef52e17aa00834d Luke Closs committed Jun 24, 2012
Showing with 2 additions and 9 deletions.
  1. +2 −9 bin/process-transactions
View
@@ -143,18 +143,11 @@ eval {
print "Skipping receipt!\n";
}
else {
- Biopay::Command->Create(
- command => 'send-receipt',
- member_id => $member->id,
- txn_ids => [ map { $_->id } @$txns ],
- ($need_to_renew_membership ? (dues => $membership_price) : ())
- );
+ system($^X, "$FindBin::Bin/send-receipt", '--for', $member->id);
}
};
-if ($@) {
- $err = $@;
+if (my $err = $@) {
error $err;
-
email_admin("Error processing payment $order_num",
"Had a problem during payment processing: $error\n\n$err\n\n"
. "This payment was for member ID " . $member->id

0 comments on commit 9bce720

Please sign in to comment.