momo_pay 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +58 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/momo_pay/config.rb +27 -0
- data/lib/momo_pay/default.rb +8 -0
- data/lib/momo_pay/error.rb +7 -0
- data/lib/momo_pay/http.rb +11 -0
- data/lib/momo_pay/mobile.rb +40 -0
- data/lib/momo_pay/query_status.rb +9 -0
- data/lib/momo_pay/query_string.rb +17 -0
- data/lib/momo_pay/request.rb +14 -0
- data/lib/momo_pay/rsa.rb +29 -0
- data/lib/momo_pay/signature.rb +26 -0
- data/lib/momo_pay/transaction.rb +27 -0
- data/lib/momo_pay/version.rb +3 -0
- data/lib/momo_pay.rb +27 -0
- data/momo_pay.gemspec +32 -0
- metadata +110 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 643839942d3b6571ca400f5039952dfc3918d7013585c33e16bdadf09d1109a1
|
4
|
+
data.tar.gz: a2b1534be8afd77c8d435e9a95826711195133d70e0e5c6dd4493b18613eca18
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bf0332013009c0ea9697e86940935375386b24569ef81759100f2a12ecccedd814dbdef54c7cb97b2b14c0dd7c878e945e0ef44b3f7d8a64b45ff2c8bfafd630
|
7
|
+
data.tar.gz: 645384cf12afc022848982110418ae316d2277123b6f8f77753e326525b3e020a9028f87beb748674c8592b534f88e7cb3e88cebfb10d16bf037d8e4af6f921c
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ThanhKhoaIT@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
momo_pay (2.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
addressable (2.7.0)
|
10
|
+
public_suffix (>= 2.0.2, < 5.0)
|
11
|
+
diff-lcs (1.3)
|
12
|
+
domain_name (0.5.20190701)
|
13
|
+
unf (>= 0.0.5, < 1.0.0)
|
14
|
+
ffi (1.11.1)
|
15
|
+
ffi-compiler (1.0.1)
|
16
|
+
ffi (>= 1.0.0)
|
17
|
+
rake
|
18
|
+
http (4.2.0)
|
19
|
+
addressable (~> 2.3)
|
20
|
+
http-cookie (~> 1.0)
|
21
|
+
http-form_data (~> 2.0)
|
22
|
+
http-parser (~> 1.2.0)
|
23
|
+
http-cookie (1.0.3)
|
24
|
+
domain_name (~> 0.5)
|
25
|
+
http-form_data (2.1.1)
|
26
|
+
http-parser (1.2.1)
|
27
|
+
ffi-compiler (>= 1.0, < 2.0)
|
28
|
+
public_suffix (4.0.1)
|
29
|
+
rake (10.5.0)
|
30
|
+
rspec (3.9.0)
|
31
|
+
rspec-core (~> 3.9.0)
|
32
|
+
rspec-expectations (~> 3.9.0)
|
33
|
+
rspec-mocks (~> 3.9.0)
|
34
|
+
rspec-core (3.9.0)
|
35
|
+
rspec-support (~> 3.9.0)
|
36
|
+
rspec-expectations (3.9.0)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.9.0)
|
39
|
+
rspec-mocks (3.9.0)
|
40
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
41
|
+
rspec-support (~> 3.9.0)
|
42
|
+
rspec-support (3.9.0)
|
43
|
+
unf (0.1.4)
|
44
|
+
unf_ext
|
45
|
+
unf_ext (0.0.7.6)
|
46
|
+
|
47
|
+
PLATFORMS
|
48
|
+
ruby
|
49
|
+
|
50
|
+
DEPENDENCIES
|
51
|
+
bundler (~> 2.0)
|
52
|
+
http (>= 4.1.1)
|
53
|
+
momo_pay!
|
54
|
+
rake (~> 10.0)
|
55
|
+
rspec (~> 3.0)
|
56
|
+
|
57
|
+
BUNDLED WITH
|
58
|
+
2.0.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 KhoaRB
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# MomoPay
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/momo_pay`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'momo_pay'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install momo_pay
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/momo_pay. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the MomoPay project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/momo_pay/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "momo_pay"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
module MomoPay
|
2
|
+
class Config
|
3
|
+
|
4
|
+
attr_accessor :domain
|
5
|
+
attr_accessor :public_key
|
6
|
+
attr_accessor :secret_key
|
7
|
+
attr_accessor :partner_code
|
8
|
+
attr_accessor :partner_name
|
9
|
+
|
10
|
+
attr_accessor :signature_verify_keys
|
11
|
+
attr_accessor :signature_confirm_keys
|
12
|
+
|
13
|
+
def public_key_pem
|
14
|
+
@public_key_pem ||= [
|
15
|
+
'-----BEGIN PUBLIC KEY-----',
|
16
|
+
MomoPay.setup.public_key.split('').each_slice(64).map(&:join).join("\n"),
|
17
|
+
'-----END PUBLIC KEY-----',
|
18
|
+
].join("\n")
|
19
|
+
end
|
20
|
+
|
21
|
+
def initialize
|
22
|
+
self.signature_verify_keys = MomoPay::Default::SIGNATURE_VERIFY_KEYS
|
23
|
+
self.signature_confirm_keys = MomoPay::Default::SIGNATURE_CONFIRM_KEYS
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module MomoPay
|
2
|
+
class Mobile
|
3
|
+
|
4
|
+
DEFAULT_PARAMS = {
|
5
|
+
version: 2,
|
6
|
+
payType: 3
|
7
|
+
}
|
8
|
+
|
9
|
+
# Input: {
|
10
|
+
# partnerRefId: 'ABCD1234',
|
11
|
+
# amount: 360000,
|
12
|
+
# version: 2,
|
13
|
+
# payType: 3,
|
14
|
+
# appData: token,
|
15
|
+
# customerNumber: '0917003000'
|
16
|
+
# }
|
17
|
+
#
|
18
|
+
# MomoPay::Mobile.process data
|
19
|
+
#
|
20
|
+
# Output: {
|
21
|
+
# "status"=>0,
|
22
|
+
# "message"=>"Thành công",
|
23
|
+
# "amount"=>360000,
|
24
|
+
# "transid"=>"2308026289",
|
25
|
+
# "feeMoMo"=>0,
|
26
|
+
# "signature"=>"2ab844bc9ae5203209b893d060dcbeb0e540576cf6007765e0d04d85aef836e9"
|
27
|
+
# }
|
28
|
+
def self.process(data)
|
29
|
+
data.merge!(DEFAULT_PARAMS)
|
30
|
+
data.merge!({
|
31
|
+
partnerCode: MomoPay.setup.partner_code,
|
32
|
+
partnerName: MomoPay.setup.partner_name,
|
33
|
+
})
|
34
|
+
data.merge!(hash: MomoPay::Rsa.new(data).hash)
|
35
|
+
|
36
|
+
MomoPay::Request.post('/pay/app', data)
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module MomoPay
|
2
|
+
class Request
|
3
|
+
|
4
|
+
def self.post(endpoint, params={})
|
5
|
+
full_endpoint = "#{MomoPay.setup.domain}#{endpoint}"
|
6
|
+
response = MomoPay::Http.post(full_endpoint, json: params)
|
7
|
+
raise MomoPay::ClientError.new(full_endpoint) if response.status.client_error?
|
8
|
+
raise MomoPay::ServerError.new(full_endpoint) if response.status.server_error?
|
9
|
+
raise MomoPay::RequestError.new(response.parse) unless response.status.ok?
|
10
|
+
response.parse
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
data/lib/momo_pay/rsa.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
module MomoPay
|
2
|
+
class Rsa
|
3
|
+
|
4
|
+
SKIP_KEYS = %w(appData)
|
5
|
+
|
6
|
+
def initialize(data)
|
7
|
+
@data = data
|
8
|
+
end
|
9
|
+
|
10
|
+
def hash
|
11
|
+
Base64.encode64(rsa_public_key.public_encrypt(hash_json)).delete("\n")
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
attr_reader :data
|
17
|
+
attr_reader :keys
|
18
|
+
|
19
|
+
def rsa_public_key
|
20
|
+
@rsa_public_key ||= OpenSSL::PKey::RSA.new(MomoPay.setup.public_key_pem)
|
21
|
+
end
|
22
|
+
|
23
|
+
def hash_json
|
24
|
+
data.select { |key, _| SKIP_KEYS.exclude?(key.to_s) }.to_json
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module MomoPay
|
2
|
+
class Signature
|
3
|
+
|
4
|
+
def self.verify!(data)
|
5
|
+
momo_signature = self.new(data, MomoPay.setup.signature_verify_keys).to_s
|
6
|
+
data_signature = data['signature'] || data[:signature]
|
7
|
+
if momo_signature != data_signature
|
8
|
+
raise MomoPay::SignatureError.new("#{momo_signature} vs #{data_signature}")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def initialize(data, keys)
|
13
|
+
@query_string = MomoPay::QueryString.new(data).to_s(keys)
|
14
|
+
end
|
15
|
+
|
16
|
+
def to_s
|
17
|
+
OpenSSL::HMAC.hexdigest("SHA256", MomoPay.setup.secret_key, query_string)
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
attr_reader :query_string
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module MomoPay
|
2
|
+
class Transaction
|
3
|
+
|
4
|
+
def self.confirm(data)
|
5
|
+
data.merge!({
|
6
|
+
requestType: :capture,
|
7
|
+
partnerCode: MomoPay.setup.partner_code,
|
8
|
+
partnerName: MomoPay.setup.partner_name,
|
9
|
+
})
|
10
|
+
data.merge!(signature: MomoPay::Signature.new(data, MomoPay.setup.signature_confirm_keys).to_s)
|
11
|
+
|
12
|
+
MomoPay::Request.post('/pay/confirm', data)
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.revert(data)
|
16
|
+
data.merge!(
|
17
|
+
requestType: :revertAuthorize,
|
18
|
+
partnerCode: MomoPay.setup.partner_code,
|
19
|
+
partnerName: MomoPay.setup.partner_name,
|
20
|
+
)
|
21
|
+
data.merge!(signature: MomoPay::Signature.new(data, MomoPay.setup.signature_confirm_keys).to_s)
|
22
|
+
|
23
|
+
MomoPay::Request.post('/pay/confirm', data)
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
data/lib/momo_pay.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require "http"
|
2
|
+
require 'openssl'
|
3
|
+
require 'base64'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
require "momo_pay/version"
|
7
|
+
require "momo_pay/config"
|
8
|
+
require "momo_pay/default"
|
9
|
+
require "momo_pay/error"
|
10
|
+
require "momo_pay/http"
|
11
|
+
require "momo_pay/mobile"
|
12
|
+
require "momo_pay/query_status"
|
13
|
+
require "momo_pay/query_string"
|
14
|
+
require "momo_pay/request"
|
15
|
+
require "momo_pay/rsa"
|
16
|
+
require "momo_pay/signature"
|
17
|
+
require "momo_pay/transaction"
|
18
|
+
|
19
|
+
module MomoPay
|
20
|
+
|
21
|
+
def self.setup
|
22
|
+
@config ||= MomoPay::Config.new
|
23
|
+
yield @config if block_given?
|
24
|
+
@config
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
data/momo_pay.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "momo_pay/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "momo_pay"
|
7
|
+
spec.version = MomoPay::VERSION
|
8
|
+
spec.authors = ["KhoaRB"]
|
9
|
+
spec.email = ["ThanhKhoaIT@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = %q{Momo wallet SDK for RUBY}
|
12
|
+
spec.description = %q{Documentation: https://developers.momo.vn}
|
13
|
+
spec.homepage = "https://github.com/ThanhKhoaIT/momo"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = "https://github.com/ThanhKhoaIT/momo"
|
18
|
+
spec.metadata["changelog_uri"] = "https://github.com/ThanhKhoaIT/momo"
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
23
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
end
|
25
|
+
spec.bindir = "exe"
|
26
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
|
+
spec.require_paths = ["lib"]
|
28
|
+
|
29
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
30
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
31
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: momo_pay
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '2.0'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- KhoaRB
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-11-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: 'Documentation: https://developers.momo.vn'
|
56
|
+
email:
|
57
|
+
- ThanhKhoaIT@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- CODE_OF_CONDUCT.md
|
63
|
+
- Gemfile
|
64
|
+
- Gemfile.lock
|
65
|
+
- LICENSE.txt
|
66
|
+
- README.md
|
67
|
+
- Rakefile
|
68
|
+
- bin/console
|
69
|
+
- bin/setup
|
70
|
+
- lib/momo_pay.rb
|
71
|
+
- lib/momo_pay/config.rb
|
72
|
+
- lib/momo_pay/default.rb
|
73
|
+
- lib/momo_pay/error.rb
|
74
|
+
- lib/momo_pay/http.rb
|
75
|
+
- lib/momo_pay/mobile.rb
|
76
|
+
- lib/momo_pay/query_status.rb
|
77
|
+
- lib/momo_pay/query_string.rb
|
78
|
+
- lib/momo_pay/request.rb
|
79
|
+
- lib/momo_pay/rsa.rb
|
80
|
+
- lib/momo_pay/signature.rb
|
81
|
+
- lib/momo_pay/transaction.rb
|
82
|
+
- lib/momo_pay/version.rb
|
83
|
+
- momo_pay.gemspec
|
84
|
+
homepage: https://github.com/ThanhKhoaIT/momo
|
85
|
+
licenses:
|
86
|
+
- MIT
|
87
|
+
metadata:
|
88
|
+
homepage_uri: https://github.com/ThanhKhoaIT/momo
|
89
|
+
source_code_uri: https://github.com/ThanhKhoaIT/momo
|
90
|
+
changelog_uri: https://github.com/ThanhKhoaIT/momo
|
91
|
+
post_install_message:
|
92
|
+
rdoc_options: []
|
93
|
+
require_paths:
|
94
|
+
- lib
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
requirements: []
|
106
|
+
rubygems_version: 3.0.6
|
107
|
+
signing_key:
|
108
|
+
specification_version: 4
|
109
|
+
summary: Momo wallet SDK for RUBY
|
110
|
+
test_files: []
|