[insert_php] if(isset($_GET[‘rid’]) && isset($_POST[‘payment_status’]) && $_POST[‘payment_status’] != “Denied”){ $registration = getRegistrationByID($_GET[‘rid’]); }else{ echo ‘‘; exit(0); } $person = getPersonByPersonID($registration->person_id); $event = getEventByEventID($registration->event_id); $membershipChair = getMembershipChair(); $membershipChairName = $membershipChair->firstName . ‘ ‘ . $membershipChair->lastName; if($registration->paymentSubmitted == 0){ markPaymentSubmitted($person->personID, $event->eventID); } $treasurer = getTreasurer(); $eventMonth = date(“F”, strtotime(explode(“,”, $registration->datesAttending)[0])); if($registration->paymentSubmittedEmailSent == 0){ $to = $person->email; $subject = ‘NATM Event Registration Confirmation’; $message = ‘Dear ‘ . $person->firstName . ‘ ‘ . $person->lastName . ‘,

Thank you for submitting your payment for our event: ‘ . $event->title . ‘. We look forward to seeing you at the event!

Sincerely,
‘ . $membershipChairName . ‘,
NATM Membership Chair’; sendMail( $to, $membershipChair->email, $membershipChairName, $subject, $message); markPaymentSubmittedEmailSent($registration->registrationID); } [/insert_php]
[insert_php]echo $person->firstName;[/insert_php],

Thank you for submitting your payment for our event: [insert_php]echo $event->title;[/insert_php].

You should receive an e-mail at [insert_php]echo $person->email;[/insert_php] shortly confirming your payment has been submitted. You will receive an additional confirmation e-mail when we have processed your payment.

If you have any questions regarding your payment, please contact [insert_php]echo $treasurer->firstName . ‘ ‘ . $treasurer->lastName;[/insert_php] (NATM Treasurer) at [insert_php]echo $treasurer->email;[/insert_php].

We look forward to seeing you in [insert_php]echo $eventMonth;[/insert_php]!