# edd_set_payment_transaction_id()

 The *edd\_set\_payment\_transaction\_id()* function is used to set the transaction ID related to a specific purchase.

 The function takes two parameters, one for the payment ID and one for the transaction ID:

```
edd_set_payment_transaction_id( $payment_id, $transaction_id );
```

 The transaction ID is passed through a filter called *edd\_set\_payment\_transaction\_id*, which receives two parameters:

- $transaction\_id
- $payment\_id

 Transaction ID tracking was implemented in EDD v2.1.