Replaced the formatPrice function with 'amount_to_cents' function.