Overview
TheAkatus.Carrinho.Carrinho class is the main entry point for processing payment transactions through the Akatus API. It encapsulates all the necessary information about the payer, products, and transaction details.
Properties
List of products in the shopping cart. Minimum 1 product, maximum 100 products. See Produto for details.
Stores all data related to the transaction, including payment method and payment details. See Transacao for details.
Methods
processaTransacao()
Processes the transaction and submits it to the Akatus API. Returns:Akatus.Carrinho.Retorno
The Retorno object contains the following properties:
Shopping cart identifier
Transaction identifier
Transaction status. Possible values:
aguardandoPagamento- Awaiting PaymentemAnalise- Under Analysisaprovado- Approvedcancelado- Cancelledprocessando- Processingcompleto- Completedevolvido- Refundedestornado- Reversedchargeback- Chargeback
URL for the boleto or bank page (returned for boleto, tef_itau, tef_bradesco payment methods)
Transaction reference for internal system control (returned only for credit card payments)