congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TransactionRequest.getCurrency
Code IndexAdd Tabnine to your IDE (free)

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

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

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

String isoCode = transactionRequest.getCurrency().getCurrencyCode();
if(isoCode.equals("USD")) currencyCode = "840";
else {
origin: com.aoindustries/ao-credit-cards-authorizeNet

try {
  if(!transactionRequest.getCurrency().getCurrencyCode().equals("USD")) throw new ErrorCodeException(TransactionResult.ErrorCode.INVALID_CURRENCY_CODE, "TransactionResult.ErrorCode.INVALID_CURRENCY_CODE");
origin: com.aoindustries/ao-credit-cards-stripe

Currency currency = transactionRequest.getCurrency();
int currencyDigits = currency.getDefaultFractionDigits();
if(currencyDigits < 0) throw new AssertionError("currencyDigits < 0: " + currencyDigits);
origin: com.aoindustries/ao-credit-cards-payflowPro

BigDecimal dutyAmount = transactionRequest.getDutyAmount();
if(dutyAmount!=null) amount = amount.add(dutyAmount);
invoice.setAmt(new Currency(amount.doubleValue(), transactionRequest.getCurrency().getCurrencyCode()));
if(taxAmount!=null) invoice.setTaxAmt(new Currency(taxAmount.doubleValue(), transactionRequest.getCurrency().getCurrencyCode()));
invoice.setTaxExempt(transactionRequest.getTaxExempt() ? "Y" : "N");
if(shippingAmount!=null) invoice.setFreightAmt(new Currency(shippingAmount.doubleValue(), transactionRequest.getCurrency().getCurrencyCode()));
if(dutyAmount!=null) invoice.setDutyAmt(new Currency(dutyAmount.doubleValue(), transactionRequest.getCurrency().getCurrencyCode()));
origin: com.aoindustries/ao-credit-cards-sagePayments

private AuthorizationResult saleOrAuthorize(TransactionRequest transactionRequest, CreditCard creditCard, boolean capture) {
  if(!transactionRequest.getCurrency().getCurrencyCode().equals("USD")) {
com.aoindustries.creditcardsTransactionRequestgetCurrency

Popular methods of TransactionRequest

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

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • putExtra (Intent)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • String (java.lang)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top 17 Free Sublime Text Plugins
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