Jump to content

Commerce - Custom transaction log possible?

Tom Christian

Recommended Posts

I'm creating a code hook that extends the \IPS\nexus\Invoice class and save() method. Once the invoice is set to paid, I'm running some custom code. At this point, I'd also like to create a transaction log to appear within the nice little "Transaction History" block. Is this possible?

	public function save()

		if ( $this->status == \IPS\nexus\Invoice::STATUS_PAID)

			// create log here


		return call_user_func_array( 'parent::save', func_get_args() );


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...