We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GMO API結果のエラーは、以下の例のようにGMO::Payment::APIErrorにて捕捉します。
site_api = GMO::Payment::SiteAPI.new \ site_id: SITE_ID, site_pass: SITE_PASSWORD, host: HOST begin site_api.save_member(member_id: "member_id") rescue GMO::Payment::APIError => e puts e.response_body # => ErrCode=hoge&ErrInfo=hoge&ErrMessage=hoge puts e.error_info # => {"ErrCode"=>"hoge", "ErrInfo"=>"hoge", "ErrMessage"=>"hoge"} end