Class TokenizedCreditCard

java.lang.Object
com.aoapps.payments.TokenizedCreditCard

public class TokenizedCreditCard extends Object
Minimal information available from MerchantServicesProvider for stored cards.
Author:
AO Industries, Inc.
See Also:
  • Constructor Details

    • TokenizedCreditCard

      public TokenizedCreditCard(String providerUniqueId, String providerReplacementMaskedCardNumber, String replacementMaskedCardNumber, String providerReplacementExpiration, Byte replacementExpirationMonth, Short replacementExpirationYear)
      Creates a new tokenized credit card.
  • Method Details

    • getProviderUniqueId

      public String getProviderUniqueId()
      Gets the provider-specific unique identifier.
    • getProviderReplacementMaskedCardNumber

      public String getProviderReplacementMaskedCardNumber()
      Gets the provider-specific replacement masked card number for this tokenized card.
      See Also:
    • getReplacementMaskedCardNumber

      public String getReplacementMaskedCardNumber()
      Gets the replacement masked card number for this tokenized card. This may be updated by the provider when new card information is available. This updated number may be then stored back into any local persistence.
      Returns:
      the new masked card number or null when unchanged or auto-replacements not supported
    • getProviderReplacementExpiration

      public String getProviderReplacementExpiration()
      Gets the provider-specific replacement expiration date for this tokenized card.
      See Also:
    • getReplacementExpirationMonth

      public Byte getReplacementExpirationMonth()
      Gets the replacement expiration month for this tokenized card. This may be updated by the provider when new card information is available. This updated expiration may be then stored back into any local persistence.
      Returns:
      the new expiration month or null when unchanged or auto-replacements not supported
    • getReplacementExpirationYear

      public Short getReplacementExpirationYear()
      Gets the replacement expiration year for this tokenized card. This may be updated by the provider when new card information is available. This updated expiration may be then stored back into any local persistence.
      Returns:
      the new expiration year or null when unchanged or auto-replacements not supported