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

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

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

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

private static BigDecimal getAmount(TransactionRequest transactionRequest) {
  BigDecimal amount = transactionRequest.getAmount();
  BigDecimal taxAmount = transactionRequest.getTaxAmount();
  if(taxAmount!=null) amount = amount.add(taxAmount);
  BigDecimal shippingAmount = transactionRequest.getShippingAmount();
  if(shippingAmount!=null) amount = amount.add(shippingAmount);
  BigDecimal dutyAmount = transactionRequest.getDutyAmount();
  if(dutyAmount!=null) amount = amount.add(dutyAmount);
  return amount;
}
origin: com.aoindustries/ao-credit-cards-usaepay

BigDecimal taxAmount = transactionRequest.getTaxAmount();
if(taxAmount!=null) amount = amount.add(taxAmount);
BigDecimal shippingAmount = transactionRequest.getShippingAmount();
origin: com.aoindustries/ao-credit-cards-authorizeNet

addField(querySB, "x_ship_to_country", transactionRequest.getShippingCountryCode());
addField(querySB, "x_tax", transactionRequest.getTaxAmount());
addField(querySB, "x_freight", transactionRequest.getShippingAmount());
addField(querySB, "x_duty", transactionRequest.getDutyAmount());
origin: com.aoindustries/ao-credit-cards-payflowPro

BigDecimal taxAmount = transactionRequest.getTaxAmount();
if(taxAmount!=null) amount = amount.add(taxAmount);
BigDecimal shippingAmount = transactionRequest.getShippingAmount();
origin: com.aoindustries/ao-credit-cards-sagePayments

emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
emptyStringIfNull(creditCard.getPhone()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
emptyStringIfNull(creditCard.getPhone()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
emptyStringIfNull(creditCard.getPhone()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(transactionRequest.getOrderNumber()),
emptyStringIfNull(creditCard.getPhone()),
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.creditcardsTransactionRequestgetTaxAmount

Popular methods of TransactionRequest

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

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Menu (java.awt)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Top Vim plugins
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