I am using the plugin to decide between two statuses (paid and unpaid) depending on the payment gateway (credit card or invoice). It goes from processing to then complete when shipped and then to either paid or unpaid. My issue is when a user pays for an order after it has been assigned the unpaid status. I want the status to change from unpaid to paid if they use a credit card. What happens is it goes from unpaid back to processing. Is there any way to force it to go to paid?
Ok, so what we need is to check status before that, correct? I.e. when changing order status from processing to paid, we need to make sure that its status before that was unpaid? And if it was some other status (or no status at all, i.e. new order), we are not changing it to paid?
P.S. By the way – which plugin are you using for the credit cards? Are you sure there is no way to simply set somewhere in that plugin to mark orders paid instead of processing when payment is received?