So I have a registration form for some on-line courses, the registered users for these courses are maintained by an external web-service and are registered via their API... before someone is registered they must complete a payment (via woo commerce & eWay) as part of the registration form.
So on submit I need to process the payment and then, providing the payment is a success, submit the user registration details to the API. eWay will provide a response code from the bank to signify how the payment was processed... I presume woocommerce will deal accordingly with this response code on the fly... but I need to figure out how it does so I can submit the user registration info to this API.
Any advice on that would be greatly appreciated...