Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from kouhei-fuji/upgrade-tls2.1
Browse files Browse the repository at this point in the history
Upgrade to use TLSv2.1
  • Loading branch information
kouhei-fuji committed May 28, 2018
2 parents 12d77f0 + 347cddf commit 2a1e055
Show file tree
Hide file tree
Showing 31 changed files with 490 additions and 446 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
language: ruby
rvm:
- 2.0.0
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5
env:
global:
- GMO_TEST_API_ENDPOINT="example.com"
Expand Down
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG
# CHANGE LOG

## 0.0.2 (2018-05-28)

* Change `Net::HTTP#ssl_version` TLSv1 to TLSv1.2 for GMO-PG's specification change
* Unsupport Ruby `2.0.0`, use `2.1`+

## 0.0.1 (2015-10-24)

- Initial release.
* Initial release.
42 changes: 20 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Ruby client for the protocol type API provided by GMO Payment Gateway.

This library includes:

- Credit-Card protocol API - Version: 2014/03/18 1.13
- Multi-Payment protocol API (Bitcoin) - Version: 2015/04/01 1.32
- ErrorCode - Version: 2015/02/26 1.43
* Credit-Card protocol API - Version: 2014/03/18 1.13
* Multi-Payment protocol API (Bitcoin) - Version: 2015/04/01 1.32
* ErrorCode - Version: 2015/02/26 1.43

## Installation

Expand Down Expand Up @@ -73,28 +73,26 @@ You can use generator in Ruby on Rails:

If you want to test in your environment, you have to define:

- GMO_TEST_API_ENDPOINT
- GMO_TEST_SITE_ID
- GMO_TEST_SITE_PASS
- GMO_TEST_SHOP_ID
- GMO_TEST_SHOP_PASS
- GMO_TEST_CARD_EXPIRE
- GMO_TEST_CARD_NO_N
=> _Non-ACS test card number_
- GMO_TEST_CARD_NO_N_MASK
- GMO_TEST_CARD_NO_Y
=> _ACS test card number_
- GMO_TEST_CARD_NO_Y_MASK
- GMO_TEST_ACS_URL
- GMO_TEST_BTC_URL
* `GMO_TEST_API_ENDPOINT`
* `GMO_TEST_SITE_ID`
* `GMO_TEST_SITE_PASS`
* `GMO_TEST_SHOP_ID`
* `GMO_TEST_SHOP_PASS`
* `GMO_TEST_CARD_EXPIRE`
* `GMO_TEST_CARD_NO_N`: _Non-ACS test card number_
* `GMO_TEST_CARD_NO_N_MASK`
* `GMO_TEST_CARD_NO_Y`: _ACS test card number_
* `GMO_TEST_CARD_NO_Y_MASK`
* `GMO_TEST_ACS_URL`
* `GMO_TEST_BTC_URL`

## Contributing

1. Fork it (https://github.com/kouhei-fuji/gmo_payment/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
1. Fork it (https://github.com/kouhei-fuji/gmo_payment/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

## License

Expand Down
2 changes: 1 addition & 1 deletion lib/gmo_payment/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def call(method, args)
http = ::Net::HTTP.new(@options.api_endpoint, 443,
proxy.host, proxy.port, proxy.user, proxy.password)
http.use_ssl = true
http.ssl_version = :TLSv1
http.ssl_version = :TLSv1_2
http.verify_mode = @options.verify_mode
http.ssl_timeout = 120
http.open_timeout = 15
Expand Down
2 changes: 1 addition & 1 deletion lib/gmo_payment/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GmoPayment
VERSION = '0.0.1'
VERSION = '0.0.2'
end
44 changes: 22 additions & 22 deletions spec/cassettes/GmoPayment_Client/_auth_to_sales/return_6_items.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions spec/cassettes/GmoPayment_Client/_change_tran/return_6_items.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2a1e055

Please sign in to comment.