vivawallet.transactions for operations that target one transaction at a time: retrieving a transaction by ID, refunding or cancelling it, capturing a transaction, creating a card token, and running advanced flows such as MOTO charges, incremental pre-authorizations, rebates, fast refunds, and OCT / Pay Out.
Retrieve a transaction
CallgetTransactionById(transactionId) with the Viva transaction UUID.
statusId values returned by the SDK type:
The SDK returns Viva’s response shape directly. It does not normalize transaction amounts or status fields.
Cancel or refund a transaction
CallcancelTransaction(transactionId, refundOptions). The current SDK type requires an amount; pass the amount you want to refund in the currency’s smallest unit.
Capture or create a transaction
UsecreateTransaction(options) when Viva expects a transaction payload containing the initial transaction id.
makeTransaction(options) is still available as a deprecated alias for createTransaction(options).
MOTO card charge
A Mail Order / Telephone Order (MOTO) charge usesmakeMotoCardCharge(options). The charge references an existing payment order via orderCode; the card details are sent in the creditcard object.
Create a card token
UsecreateCardToken(options) to obtain a reusable token associated with the card used for a previous transaction.
token plus any additional fields returned by Viva.
Incremental pre-authorization
UseincreasePreauth(transactionId, options) to increase the amount on an existing pre-authorized transaction.
Cancel partial authorization
UsecancelPartialAuthorization(transactionId, options) to release part of an existing partial authorization.
Rebate and fast refund
rebate(transactionId, options) and fastRefund(transactionId, options) create follow-up credit transactions tied to an original transaction.
cancelRebateOrFastRefund(transactionId, options).
OCT / Pay Out
UseoctAndPayout(transactionId, options) for the OCT / Pay Out endpoint. serviceId selects the operation: 6 for OCT, 14 for Pay Out.
Legacy transaction lookup
For older Basic Auth integrations, usegetLegacyTransactions(transactionId?, query?).