t-k / gmo-payment-ruby Goto Github PK
View Code? Open in Web Editor NEWRuby client library for the GMO Payment Platform.
Home Page: https://rubygems.org/gems/gmo
License: MIT License
Ruby client library for the GMO Payment Platform.
Home Page: https://rubygems.org/gems/gmo
License: MIT License
GMOのAPIレスポンスに半角カナの文字列を含む場合、文字化けするケースがあります。
APIからの文字列: ジーエムオーアオゾラネット
GMOのAPIから取得した文字列: 郷骸竹
https://github.com/t-k/gmo-payment-ruby/blob/master/lib/gmo.rb#L43
lib/gmo.rbの中にエンディングしてるコードを変更する。
変更前のコード:
body = response = Hash[response.map { |k,v| [k, NKF.nkf('-w',v)] }]
変更後のコード:
body = response = Hash[response.map { |k,v| [k, v.force_encoding('Shift_JIS').encode('UTF-8')] }]
I want to write the setting file in one place.
後でやる
に2.1.2.1.取引登録(EntryTran)
の解説がありますが、
https://github.com/t-k/gmo-payment-ruby/blob/master/lib/gmo/site_api.rb
を確認するとentry_tran
はありません。
Shop API
には存在しますので、単純に
Site APIのWikiの説明から削除かと思われます。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.