Manual Payment: echo amount, coupon amount etc

Hey :slight_smile:

Iam trying to show the level selected amount within my manual payment e-mail which is sending to the user, after he successfully placed his order.

for better clarification, you can find my code below:

// Form Variables
		$per = $_POST['period'];
	$lev = $_POST['level'];

			// User Meta
			 global $current_user;
			get_currentuserinfo();
 			$curr_user_email = $current_user->user_email;
			$uname = $current_user->display_name;
 			$currlvl = $current_user->user_level;

			//php mailer variables
 			$to = get_option('admin_email');

			 //php clientmailer variables
		$subject_client = "Your order....";
			$headers_client = 'From: '. $to . "\r\n" . 'Reply-To: ' . $to . "\r\n";
			$headers_client .= "MIME-Version: 1.0\r\n";
			$headers_client .= "Content-Type: text/html;\r\n";		

		if ($lev = $_POST["level"] == 2) {
			$mailtext_client = 'Hello '.$uname.', <br> Mymessage if user bought level 2
        Right here i would like to place the level amount, discount amount etc. 		} 

        elseif ($lev = $_POST["level"] == 3) {
		$mailtext_client = 'Hallo '.$uname.', <br> Mymessage if user bought level 3
        Right here i would like to place the level amount, discount amount etc.	}

        //Emails are sending after order is placed, but not after coupon is entered
			//Error/Success Message
			if(empty($per) || empty($lev)) {
	 			if ($_POST['submit']) {
	 	 		$content .= '<div class="errormsg">My Errormessage!</div>';
	 			}
			}
			elseif ($_POST['coupon-submit']) {
	 			// nothing happens
			} else {
	 			$sent = wp_mail($curr_user_email, $subject_client, $mailtext_client, $headers_client);
	 			if ($sent) $content .= $makepayment; // shows payment details
			}

What i want to do, is add the amounts to my messages. are there variables to use for? If yes, how do i call them? I added all this to my "gateway-manual.php" right now.

If you guys need some more explanation, please let me know.

Best,
David