decode omise error and refactor tokens api to use new omise client