congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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