Object CheckoutCurrency.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean isSupported(String currency) Check if the currency code is supported by Adyen.
      final static CheckoutCurrency find(String currency) Find the instance of CheckoutCurrency based on the currency code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isSupported

         final static Boolean isSupported(String currency)

        Check if the currency code is supported by Adyen.

        Parameters:
        currency - the 3 letter code of the currency.
        Returns:

        if the currency exists and is supported by Adyen

      • find

         final static CheckoutCurrency find(String currency)

        Find the instance of CheckoutCurrency based on the currency code.

        Parameters:
        currency - The currency code.
        Returns:

        The CheckoutCurrency instance, or throws a CheckoutException if the code is not supported.