setCurrencyCode method
API to set the currency code.
Parameters:
currencyCode Currency code to be used by Payment Gateway for payment.
ISO 4217 currency code (example: USD, KRW, EUR, and so on / All uppercase).
Exceptions:
Throws an ArgumentError if the currency code is empty.
Implementation
void setCurrencyCode(String currencyCode){
if (currencyCode.isEmpty) {
throw ArgumentError("currencyCode is empty");
}
this.currencyCode = currencyCode;
}