toCurrency method

int toCurrency()

convert amount multiplied by 100 as a requirement for paymongo api.

Implementation

int toCurrency() {
  return (toDouble() * 100).toInt();
}