The following code snippet can be used to change the status of an order to ‘completed’ after a payment has been processed successfully. Simply ...