Identifying the type of operation
The vads_operation_type field allows to distinguish:
- a debit operation
- a refund operation
If vads_operation_type is set to DEBIT, the script updates the order and registers the transaction details.
If vads_operation_type is set to CREDIT, the script updates the paid amount or adds a new transaction line in the order.