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

How to use
getCustomerIp
method
in
com.aoindustries.creditcards.TransactionRequest

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

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

addField(querySB, "x_merchant_email", transactionRequest.getMerchantEmail());
addField(querySB, "x_cust_id", creditCard.getCustomerId());
addField(querySB, "x_customer_ip", transactionRequest.getCustomerIp());
origin: com.aoindustries/ao-credit-cards-usaepay

String customerIp = transactionRequest.getCustomerIp();
if(customerIp!=null && customerIp.length()>0) request.put("UMip", customerIp);
origin: com.aoindustries/ao-credit-cards-payflowPro

String customerIp = transactionRequest.getCustomerIp();
if(customerIp!=null && customerIp.length()>0) customerInfo.setCustIP(customerIp);
String customerId = creditCard.getCustomerId();
origin: com.aoindustries/ao-credit-cards-stripe

/**
 * Meta data contains both card meta data (also associated with "customer" for stored cards) and transaction meta data.
 * https://stripe.com/docs/api#create_charge
 */
private static Map<String,Object> makeMetadata(TransactionRequest transactionRequest, CreditCard creditCard, boolean update) {
  Map<String,Object> metadata = makeMetadata(creditCard, update);
  // Additional customer meta data
  addMetaData(update, metadata, "customer_description", creditCard.getComments(), true);
  addMetaData(update, metadata, "customer_email", creditCard.getEmail(), false);
  // Transaction meta data
  addMetaData(update, metadata, "customer_ip", transactionRequest.getCustomerIp(), false);
  addMetaData(update, metadata, "order_number", transactionRequest.getOrderNumber(), false);
  addMetaData(update, metadata, "amount", transactionRequest.getAmount(), false);
  addMetaData(update, metadata, "tax_amount", transactionRequest.getTaxAmount(), false);
  addMetaData(update, metadata, "tax_exempt", transactionRequest.getTaxExempt(), false);
  addMetaData(update, metadata, "shipping_amount", transactionRequest.getShippingAmount(), false);
  addMetaData(update, metadata, "duty_amount", transactionRequest.getDutyAmount(), false);
  addMetaData(update, metadata, "shipping_company_name", transactionRequest.getShippingCompanyName(), true);
  addMetaData(update, metadata, "invoice_number", transactionRequest.getInvoiceNumber(), false);
  addMetaData(update, metadata, "purchase_order_number", transactionRequest.getPurchaseOrderNumber(), false);
  return metadata;
}
com.aoindustries.creditcardsTransactionRequestgetCustomerIp

Popular methods of TransactionRequest

  • getAmount
  • getCurrency
  • getOrderNumber
  • getShippingAmount
  • getShippingCity
  • getShippingCountryCode
  • getShippingFirstName
  • getShippingLastName
  • getShippingPostalCode
  • getShippingState
  • getShippingStreetAddress1
  • getShippingStreetAddress2
  • getShippingStreetAddress1,
  • getShippingStreetAddress2,
  • getTaxAmount,
  • getDescription,
  • getDutyAmount,
  • getInvoiceNumber,
  • getPurchaseOrderNumber,
  • getTaxExempt,
  • getTestMode

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Best plugins for Eclipse
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