Transaction Details

transaction.getId()

Transaction IDs are made up of alpha-numeric characters and are at least 6 characters in length. Example: “gy46fg”

transaction.getAvsErrorResponseCode()

The AVS error response code will be populated if there was an error when checking AVS. If this is not set then you will have an avsPostalCodeResponseCode and an avsStreetAddressResponseCode.

transaction.getAvsPostalCodeResponseCode()

If there was an error processing AVS this will not be set and instead you will have an avsErrorResponseCode. Otherwise this will populated as one of the following values.

transaction.getAvsStreetAddressResponseCode()

If there was an error processing AVS this will not be set and instead you will have an avsErrorResponseCode. Otherwise this will populated as one of the following values.

transaction.getAmount()

A BigDecimal object for the transaction amount. If you settle a different amount than what was authorized, this will return the amount settled.

transaction.getCreatedAt()

Date/time the transaction was created.

transaction.getCreditCard()

The credit card details used to process this transaction. If the transaction was created using vault tokens, then the creditCardDetails is a snapshot of the credit card in the vault at the time the transaction was created. So if the credit card in the vault is updated after the transaction is created, transaction.getCreditCard().getMaskedNumber() will return the number that was used to process the transaction, while transaction.getVaultCreditCard().getMaskedNumber() will return the current masked number for the token that was used to create the transaction.

transaction.getCreditCard().getBin()

The first 6 digits of the credit card number.

transaction.getCreditCard().getCardType()

The type of the credit card.

transaction.getCreditCard().getCardholderName()

transaction.getCreditCard().getCustomerLocation()

“US” if the billing address is in the US or not specified. “International” if the billing country is not in the US.

transaction.getCreditCard().getExpirationMonth()

Formatted as MM.

transaction.getCreditCard().getExpirationYear()

Formatted as YYYY.

transaction.getCreditCard().getExpirationDate()

Formatted as MM/YYYY.

transaction.getCreditCard().getLast4()

The last four digits of the credit card number.

transaction.getCreditCard().getToken()

The vault token for the credit card. This is the only attribute that is not a snapshot. If you update your vault tokens after creating a transaction, this attribute will return the new token rather than what the token was at the time the transaction was created.

transaction.getCreditCard().getMaskedNumber()

The credit card number with middle digits masked, e.g. 510510******5100. Currently we always return six asterisks in the middle, even if the actual credit card number isn’t 16-digits long.

transaction.getCustomer()

The customer details used to process this transaction. If the transaction was created using vault tokens, then the customerDetails is a snapshot of the customer in the vault at the time the transaction was created. So if the customer in the vault is updated after the transaction is created, transaction.getCustomer().getFirstName() will return the first name that was used to process the transaction, while transaction.getVaultCustomer().getFirstName() will return the current first name for the customer that was used to create the transaction.

transaction.getCurrencyIsoCode()

The currency for the transaction. “USD” for US dollars. See the ISO 4217 codes.

transaction.getCustomFields()

A hash of custom fields stored on the transaction.

transaction.getCvvResponseCode()

transaction.getGatewayRejectionReason()

Indicates why the transaction was rejected. Only set if the status is gateway rejected.

Note: This was added in version 2.4.0

transaction.getMerchantAccountId()

transaction.getOrderId()

transaction.getBilling()

The billing address details used to process this transaction. If billing address was stored in the vault, then the billingAddressDetails is a snapshot of the address in the vault at the time the transaction was created. So if the address in the vault is updated after the transaction is created, transaction.getBillingAddress().getPostalCode() will return the postal code, while transaction.getVaultBillingAddress().getPostalCode() will return the current postal code for the address in the vault.

The address details are similar to those found on the address details page.

transaction.getShipping()

Same as transaction.getBilling() above.

transaction.getProcessorAuthorizationCode()

The authorization code from the processor.

transaction.getProcessorResponseCode()

See the list of possible processor responses.

transaction.getProcessorResponseText()

See the list of possible processor responses.

transaction.getRefundIds()

If this transaction was refunded, this will return a list of the ids for any transactions that refunded this transaction.

transaction.getRefundedTransactionId()

If this transaction is a refund, this will return the ID of the sale transaction that was refunded by this one.

transaction.getStatus()

See the transaction overview. Possible values:

transaction.getStatusHistory()

transaction.getSubscriptionId()

transaction.getSubscriptionDetails.billingPeriodStartDate()

transaction.getSubscriptionDetails.billingPeriodEndDate()

transaction.getType()

Indicates if the transaction is a sale or a credit. Possible values:

transaction.getUpdatedAt()

The timestamp of the latest time the transaction was updated.

transaction.getVaultBillingAddress()

transaction.getVaultCreditCard()

transaction.getVaultCustomer()

transaction.getVaultShippingAddress()