Jump to content
Sign in to follow this  
Blesta Addons

get transaction for wich invoice via Event

Recommended Posts

the Transactions.Add event is not returning the invoice_id wish the transaction was for.

the transaction info and applying payment is called after the Transactions.Add, So there are no way to know the transaction for wich invoice by the Transactions.Add . is possible to add another event that return the transaction info with amount applier to each invoice, this event should be trigger after Transactions->apply() function .

we can get something with the Invoices.setClosed function, but we need this only in the transactions.Add() event .

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×