I’ve used this tutorial to create a custom payment gateway to allow people to specify that they want to be invoiced for their order. It seems to work fine apart from one issue.
http://pippinsplugins.com/create-custom-payment-gateway-for-easy-digital-downloads/
I’d like the flow to go like this:
– Customer places order
– Order is placed but marked as pending
– We receive email notifying us of the new order
– We send out invoice
– Customer sends payment via cheque or bank transfer
– Once payment is cleared we mark order as complete.
– Custom receives receipt email
The problem is that it seems the email sent to us notifying us of the new order, only seems to be sent once the order is marked as complete. I don’t want the customer receiving their receipt until we have manually checked payment has cleared and the order has been marked as complete.