RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Functions
  6. rpress_set_payment_transaction_id()

rpress_set_payment_transaction_id()

The  rpress_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:

rpress_set_payment_transaction_id( $payment_id, $transaction_id );

The transaction ID is passed through a filter called  rpress_set_payment_transaction_id, which receives two parameters:

  • $transaction_id
  • $payment_id

How can we help?