Overview
TheAkatus.Carrinho.Transacao class stores all information related to the payment transaction, including payment method, discounts, shipping, and credit card details.
Properties
Payment method type. Possible values:
boleto- Bank slip (boleto bancário)tef_itau- Itaú bank transfertef_bradesco- Bradesco bank transfercartao_visa- Visa credit cardcartao_master- Mastercard credit cardcartao_amex- American Express credit cardcartao_elo- Elo credit cardcartao_diners- Diners Club credit card
Transaction identifier for internal system control. Maximum 20 characters. Useful for linking this transaction to your own order management system.
Discount applied to the entire transaction (instead of per-product discount). Decimal values should use period as separator.
Total weight for the transaction (instead of per-product weight). Decimal values should use period as separator.
Shipping cost for the entire transaction (instead of per-product shipping). Decimal values should use period as separator.
Currency code. Currently only “BRL” (Brazilian Real) is accepted.
Credit card details. Required when payment method is a credit card.
TransacaoCartao Properties
TheTransacaoCartao class stores credit card information.
Credit card number. Maximum 20 characters.
Number of installments for this payment.
Card security code (CVV/CVC). Maximum 5 digits.
Card expiration date. Format: MM/YYYY (e.g., “12/2025”).
Cardholder information.
TransacaoCartaoPortador Properties
TheTransacaoCartaoPortador class stores information about the credit card holder.
Cardholder name exactly as printed on the card.
Cardholder’s CPF (Brazilian tax ID). Format: 11 digits without separators (e.g., “12345678900”).
Cardholder’s phone number. Format: 2-digit area code + 8-digit phone number (e.g., “1133334444”).
Example: Boleto Payment
Example: Credit Card Payment
Example: Bank Transfer Payment
Notes
- When using boleto or bank transfer (TEF), only basic transaction information is required.
- When using credit card payments, you must provide complete card and cardholder information.
- Transaction-level discount, shipping, and weight values are applied to the entire order. These can be used instead of or in addition to product-level values.
- The
Referenciafield is useful for correlating Akatus transactions with your own order management system.