congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CreditCard.numbersOnly
Code IndexAdd Tabnine to your IDE (free)

How to use
numbersOnly
method
in
com.aoindustries.creditcards.CreditCard

Best Java code snippets using com.aoindustries.creditcards.CreditCard.numbersOnly (Showing top 4 results out of 315)

origin: com.aoindustries/ao-credit-cards-stripe

private static Map<String,Object> makeCardParams(
  CreditCard creditCard,
  boolean update,
  String cardNumber,
  byte expirationMonth,
  short expirationYear,
  String cardCode
) {
  Map<String,Object> cardParams = new HashMap<String,Object>();
  addParam(update, cardParams, "number", CreditCard.numbersOnly(cardNumber));
  addParam(update, cardParams, "exp_month", expirationMonth);
  addParam(update, cardParams, "exp_year", expirationYear);
  addParam(update, cardParams, "cvc", cardCode);
  addCardParams(creditCard, update, cardParams);
  return cardParams;
}
origin: com.aoindustries/ao-credit-cards-authorizeNet

addField(querySB, "x_method", "CC");
addField(querySB, "x_amount", getAmount(transactionRequest));
addField(querySB, "x_card_num", CreditCard.numbersOnly(creditCard.getCardNumber()));
addField(querySB, "x_exp_date", creditCard.getExpirationDateMMYY());
addField(querySB, "x_card_code", creditCard.getCardCode());
addField(querySB, "x_city", creditCard.getCity());
addField(querySB, "x_state", creditCard.getState());
addField(querySB, "x_zip", CreditCard.numbersOnly(creditCard.getPostalCode()));
addField(querySB, "x_country", creditCard.getCountryCode());
addField(querySB, "x_phone", creditCard.getPhone());
addField(querySB, "x_ship_to_city", transactionRequest.getShippingCity());
addField(querySB, "x_ship_to_state", transactionRequest.getShippingState());
addField(querySB, "x_ship_to_zip", CreditCard.numbersOnly(transactionRequest.getShippingPostalCode()));
addField(querySB, "x_ship_to_country", transactionRequest.getShippingCountryCode());
origin: com.aoindustries/ao-credit-cards-stripe

@Override
public void updateCreditCardNumberAndExpiration(
  CreditCard creditCard,
  String cardNumber,
  byte expirationMonth,
  short expirationYear,
  String cardCode
) throws IOException {
  // Replace the default Card
  Map<String,Object> cardParams = makeCardParams(
    creditCard,
    true,
    cardNumber,
    expirationMonth,
    expirationYear,
    cardCode!=null ? CreditCard.numbersOnly(cardCode) : creditCard.getCardCode()
  );
  Map<String,Object> updateParams = new HashMap<String,Object>();
  addParam(true, updateParams, "card", cardParams);
  try {
    Customer customer = Customer.retrieve(creditCard.getProviderUniqueId(), options);
    customer.update(updateParams, options);
  } catch(StripeException e) {
    ConvertedError converted = convertError(e);
    // TODO: Throw ErrorCodeException to provide more details
    throw new LocalizedIOException(e, accessor, "MerchantServicesProvider.updateCreditCardNumberAndExpiration.notSuccessful");
  }
}
origin: com.aoindustries/ao-credit-cards-payflowPro

if(zip!=null && zip.length()>0) billTo.setZip(CreditCard.numbersOnly(zip));
String cardCountryCode = creditCard.getCountryCode();
if(cardCountryCode!=null && cardCountryCode.length()>0) billTo.setBillToCountry(cardCountryCode);
if(shippingState!=null && shippingState.length()>0) shipTo.setShipToState(shippingState);
String shippingPostalCode = transactionRequest.getShippingPostalCode();
if(shippingPostalCode!=null && shippingPostalCode.length()>0) shipTo.setShipToZip(CreditCard.numbersOnly(shippingPostalCode));
String shippingCountry = transactionRequest.getShippingCountryCode();
if(shippingCountry!=null && shippingCountry.length()>0) {
com.aoindustries.creditcardsCreditCardnumbersOnly

Popular methods of CreditCard

  • getCardCode
  • getCardNumber
  • getCity
  • getCountryCode
  • getEmail
  • getFirstName
  • getLastName
  • getPhone
  • getPostalCode
  • getState
  • getStreetAddress1
  • getStreetAddress2
  • getStreetAddress1,
  • getStreetAddress2,
  • getComments,
  • getCompanyName,
  • getCustomerId,
  • getExpirationDateMMYY,
  • getFax,
  • getFullName,
  • getCustomerTaxId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now