Identifying the type of operation

The vads_operation_type field allows to distinguish:

  • a debit operation
  • a refund operation
Table 1. Value of the vads_operation_type field
Value Description
DEBIT Debit transaction.
CREDIT Refund operation
VERIFICATION Checking operation during token creation or token update without payment.

For example:

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.