omise / omise-ruby

Omise Ruby Library
https://docs.opn.ooo
MIT License
40 stars 20 forks source link

inconsistent outcome #35

Closed saiqulhaq closed 1 year ago

saiqulhaq commented 5 years ago

Hi

when Omise::Token.create method is succeed, it returns json but when failed, it returns text format

so it causes JSON::Parser error on my rspec

JSON::ParserError: 822: unexpected token at '
from /Users/xxxx/.rbenv/versions/2.4.7/lib/ruby/gems/2.4.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
rossigee commented 1 year ago

Is this still an issue?

saiqulhaq-hh commented 1 year ago

I have moved to your competitor for since 2020