Tabnine Logo
TransactionRequest.getAmount
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.aoindustries.creditcards.TransactionRequest.getAmount (Showing top 5 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 amount = transactionRequest.getAmount();
BigDecimal taxAmount = transactionRequest.getTaxAmount();
if(taxAmount!=null) amount = amount.add(taxAmount);
BigDecimal subtotal = transactionRequest.getAmount().setScale(2, RoundingMode.UNNECESSARY);
request.put("UMsubtotal", subtotal.toString());
origin: com.aoindustries/ao-credit-cards-payflowPro

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

emptyStringIfNull(null),
emptyStringIfNull(transactionRequest.getAmount().toString()),
emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(null),
emptyStringIfNull(transactionRequest.getAmount().toString()),
emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(null),
emptyStringIfNull(transactionRequest.getAmount().toString()),
emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
emptyStringIfNull(null),
emptyStringIfNull(transactionRequest.getAmount().toString()),
emptyStringIfNull(transactionRequest.getShippingAmount()==null ? null : transactionRequest.getShippingAmount().toString()),
emptyStringIfNull(transactionRequest.getTaxAmount()==null ? null : transactionRequest.getTaxAmount().toString()),
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.creditcardsTransactionRequestgetAmount

Popular methods of TransactionRequest

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

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Top plugins for Android Studio
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