Object CheckoutCurrency.Companion
-
- All Implemented Interfaces:
public class CheckoutCurrency.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static CheckoutCurrency.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static BooleanisSupported(String currency)Check if the currency code is supported by Adyen. final static CheckoutCurrencyfind(String currency)Find the instance of CheckoutCurrency based on the currency code. -
-
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.
-
-
-
-