bygpay 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bygpay.gemspec +1 -1
- data/lib/bygpay/utils.rb +8 -8
- data/lib/bygpay/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d97997559b9bd855bd554bb46231a17be6b14a76
|
|
4
|
+
data.tar.gz: a8cdcb4d21790731a3ca05c57f15941e26b330dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ba24a2f45bce7c47a873a71795e1ea03cab4900eed5c2f5981f3e8a381767f36115023ad5736f10618c4571644249f8b3da037ffc4711b8e11faacb1de425c1
|
|
7
|
+
data.tar.gz: 62db8eef7d67f30f767b0e3289ae276719c5bfd6b12d147382622aba5c3d7fd40a5a1d23161c2e3e2908a62126bb9c50635c66c84fe276161cdc2d62d248d9b8
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[](https://codeclimate.com/github/nukturnal/bygpay)
|
|
1
|
+
[](https://codeclimate.com/github/nukturnal/bygpay) [](https://codebeat.co/projects/github-com-nukturnal-bygpay-master)
|
|
2
2
|
|
|
3
|
-
# Bygpay
|
|
3
|
+
# Bygpay Ruby SDK
|
|
4
4
|
|
|
5
5
|
Ruby wrapper around Bygpay Payment Gateway. Bygpay is a self hosted payment processing gateway which gives merchants / business better flexiblity and control when it comes to payment processing.
|
|
6
6
|
|
|
@@ -129,7 +129,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
129
129
|
|
|
130
130
|
## Contributing
|
|
131
131
|
|
|
132
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/nukturnal/
|
|
132
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nukturnal/bygpay_ruby. 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.
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
## License
|
data/bygpay.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
spec.summary = "Bygpay Payment Gateway Ruby SDK"
|
|
13
13
|
spec.description = "Ruby Wrapper to process payments via any installed Bygpay Payment Gateway"
|
|
14
|
-
spec.homepage = "https://github.com/nukturnal/
|
|
14
|
+
spec.homepage = "https://github.com/nukturnal/bygpay_ruby"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
data/lib/bygpay/utils.rb
CHANGED
|
@@ -4,7 +4,8 @@ module Bygpay
|
|
|
4
4
|
module Utils
|
|
5
5
|
extend self
|
|
6
6
|
|
|
7
|
-
attr_accessor :status, :response_text, :transaction_id,
|
|
7
|
+
attr_accessor :status, :response_text, :transaction_id,
|
|
8
|
+
:uuid, :result, :response
|
|
8
9
|
|
|
9
10
|
# Mobile Deposit transactions endpoint
|
|
10
11
|
def mobile_deposit_endpoint
|
|
@@ -58,13 +59,12 @@ module Bygpay
|
|
|
58
59
|
# }
|
|
59
60
|
# }
|
|
60
61
|
def parse_response(body)
|
|
61
|
-
result = JSON.parse(body)
|
|
62
|
-
@
|
|
63
|
-
@
|
|
64
|
-
@
|
|
65
|
-
@
|
|
66
|
-
@
|
|
67
|
-
@response = result['status'] == 'success'
|
|
62
|
+
@result = JSON.parse(body)
|
|
63
|
+
@transaction_id = @result['data']['trnx_code']
|
|
64
|
+
@response_text = @result['message']
|
|
65
|
+
@uuid = @result['data']['uuid']
|
|
66
|
+
@status = @result['data']['status']
|
|
67
|
+
@response = @result['status'] == 'success'
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
# global Bygpay connect
|
data/lib/bygpay/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bygpay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alfred Rowe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06-
|
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -93,7 +93,7 @@ files:
|
|
|
93
93
|
- lib/bygpay/version.rb
|
|
94
94
|
- lib/bygpay/withdraw/mobile.rb
|
|
95
95
|
- lib/bygpay/withdrawals.rb
|
|
96
|
-
homepage: https://github.com/nukturnal/
|
|
96
|
+
homepage: https://github.com/nukturnal/bygpay_ruby
|
|
97
97
|
licenses:
|
|
98
98
|
- MIT
|
|
99
99
|
metadata: {}
|