Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoice number not sent in emails. #28

Open
LiamKarlMitchell opened this issue Nov 19, 2020 · 1 comment
Open

Invoice number not sent in emails. #28

LiamKarlMitchell opened this issue Nov 19, 2020 · 1 comment

Comments

@LiamKarlMitchell
Copy link

LiamKarlMitchell commented Nov 19, 2020

Invoice number not sent in Invoice emails yet other payment methods do have it.

image

composer.json shows me
name: "laybuy/laybuy"
Version: 0.1.0

Place to look possibly Model/Laybuy.php in sendOrderEmail function.

@LiamKarlMitchell
Copy link
Author

Actually in processLaybuySuccessPayment the sendOrderEmail looks to be called before the invoice is created.

It should probably be after the "createInvoiceAndUpdateOrder"
And in that method, there is a invoiceSender->send call but its still before the invoice is saved to the db, in which case it has no Invoice ID set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant