# edd_purchase_receipt

 This filter can be used to modify the purchase receipt email that is sent to users after purchasing downloads.

 The filter accepts three parameters:

- $message – an HTML string containing the contents of the email
- $payment\_id – the numerical ID of the purchase
- $payment\_data – an array of the payment meta data

 An example of how you can append additional information to the purchase receipt is below:

```
function add_to_purchase_receipt($message, $payment_id, $purchase_data) {
	// add custom text to the end of the receipt
	$message .= &quot;nnThis is custom text added to the end of the purchase receipt&quot;;
	return $message;
}
add_filter(&#039;edd_purchase_receipt&#039;, &#039;add_to_purchase_receipt&#039;, 10, 3);&lt;br&gt;&lt;/br&gt;
```