bygpay 0.2.4 → 0.2.5
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 +5 -5
 - data/.travis.yml +15 -8
 - data/README.md +11 -12
 - data/bygpay.gemspec +5 -4
 - data/lib/bygpay/byg_response.rb +1 -1
 - data/lib/bygpay/version.rb +1 -1
 - metadata +19 -19
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 675d72ab96a505d67977afcfc2df9754653aeff11349b4f437fb4e53546e05ad
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: fc9c7489fbed34cc3218f2728be6973082131818884ecccd4c71773b411d242d
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 43c6d967557eb04665f7a905ba20ef3a5a001274cb4c24c6a3e8db2bd80ac0ef8d7e5391e9a9819b92396da228c5d699787e46a62b2a173949ed8062da83a7dd
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: bcdbd1fec5f6175a6d72f8f4e9b6b1d49cf7e630f79e494e3c18fb0d2a6fe34b0ddd598ee284a96a5d52131178d511d7735d1bf5a3d1f2e7e6c5cfb54ef007cb
         
     | 
    
        data/.travis.yml
    CHANGED
    
    | 
         @@ -1,14 +1,21 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
       2 
     | 
    
         
            -
               
     | 
| 
       3 
     | 
    
         
            -
                 
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
              -  
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
      
 1 
     | 
    
         
            +
            env:
         
     | 
| 
      
 2 
     | 
    
         
            +
              global:
         
     | 
| 
      
 3 
     | 
    
         
            +
                - CC_TEST_REPORTER_ID=9a87b9735c0709a65cb1353b8865776cf2dfbc8e2963a34a0ec583b1438afb7c
         
     | 
| 
      
 4 
     | 
    
         
            +
            before_script:
         
     | 
| 
      
 5 
     | 
    
         
            +
              - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
         
     | 
| 
      
 6 
     | 
    
         
            +
              - chmod +x ./cc-test-reporter
         
     | 
| 
      
 7 
     | 
    
         
            +
              - ./cc-test-reporter before-build
         
     | 
| 
      
 8 
     | 
    
         
            +
            script:
         
     | 
| 
      
 9 
     | 
    
         
            +
              - bundle exec rspec
         
     | 
| 
       7 
10 
     | 
    
         
             
            language: ruby
         
     | 
| 
       8 
11 
     | 
    
         
             
            rvm:
         
     | 
| 
      
 12 
     | 
    
         
            +
              - 2.5.0
         
     | 
| 
      
 13 
     | 
    
         
            +
              - 2.4.3
         
     | 
| 
       9 
14 
     | 
    
         
             
              - 2.4.0
         
     | 
| 
       10 
15 
     | 
    
         
             
              - 2.3.0
         
     | 
| 
       11 
16 
     | 
    
         
             
              - 2.2.0
         
     | 
| 
       12 
     | 
    
         
            -
              - 2.1 
     | 
| 
      
 17 
     | 
    
         
            +
              - 2.1
         
     | 
| 
       13 
18 
     | 
    
         
             
              - 2.0.0
         
     | 
| 
       14 
     | 
    
         
            -
            before_install: gem install bundler  
     | 
| 
      
 19 
     | 
    
         
            +
            before_install: gem install bundler --pre
         
     | 
| 
      
 20 
     | 
    
         
            +
            after_script:
         
     | 
| 
      
 21 
     | 
    
         
            +
              - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
         
     | 
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            [](https://badge.fury.io/rb/bygpay) [](https://badge.fury.io/rb/bygpay) [](https://codeclimate.com/github/nukturnal/bygpay_ruby) [](https://codeclimate.com/github/nukturnal/bygpay_ruby/coverage) [](https://codeclimate.com/github/nukturnal/bygpay_ruby) [](https://codebeat.co/projects/github-com-nukturnal-bygpay_ruby-master)  [](https://www.codacy.com/app/nukturnal/bygpay_ruby?utm_source=github.com&utm_medium=referral&utm_content=nukturnal/bygpay_ruby&utm_campaign=Badge_Grade) [](https://travis-ci.org/nukturnal/bygpay_ruby)
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            # Bygpay Ruby SDK
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
         @@ -35,7 +35,7 @@ Bygpay.configure do |config| 
     | 
|
| 
       35 
35 
     | 
    
         
             
              config.deposit_card_path = '/deposits/card'
         
     | 
| 
       36 
36 
     | 
    
         
             
              config.deposit_status_overide_path = '/deposits/status-overide'
         
     | 
| 
       37 
37 
     | 
    
         
             
              config.deposit_status_path = '/deposits'
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
       39 
39 
     | 
    
         
             
              config.withdraw_mobile_path = '/withdrawals/mobile'
         
     | 
| 
       40 
40 
     | 
    
         
             
              config.withdraw_status_overide_path = '/withdrawals/status-overide'
         
     | 
| 
       41 
41 
     | 
    
         
             
              config.withdraw_status_path = '/withdrawals'
         
     | 
| 
         @@ -54,15 +54,15 @@ Bygpay gateway uses four types of status messages to mark transactions. 
     | 
|
| 
       54 
54 
     | 
    
         | 
| 
       55 
55 
     | 
    
         
             
            #### Mobile Money
         
     | 
| 
       56 
56 
     | 
    
         | 
| 
       57 
     | 
    
         
            -
            Currently SDK supports MTN, AIRTEL, TIGO, VODAFONE, you may refer to your Bygpay Gateway documentations for more provider options. 
     | 
| 
      
 57 
     | 
    
         
            +
            Currently SDK supports MTN, AIRTEL, TIGO, VODAFONE, you may refer to your Bygpay Gateway documentations for more provider options.
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
     | 
    
         
            -
            Mobile Money transactions are not onetime requests because of their inherent nature, need to rely on checking the transaction status or callback POST from Bygpay Gateway to verify the status of the transaction. 
     | 
| 
      
 59 
     | 
    
         
            +
            Mobile Money transactions are not onetime requests because of their inherent nature, need to rely on checking the transaction status or callback POST from Bygpay Gateway to verify the status of the transaction.
         
     | 
| 
       60 
60 
     | 
    
         | 
| 
       61 
61 
     | 
    
         
             
            ```ruby
         
     | 
| 
       62 
62 
     | 
    
         
             
            # Making a Mobile Money Deposit Request
         
     | 
| 
       63 
63 
     | 
    
         
             
            deposit = Bygpay::Deposit::Mobile.new
         
     | 
| 
       64 
64 
     | 
    
         
             
            mobile_payload = {
         
     | 
| 
       65 
     | 
    
         
            -
              walletno: '0244124550', 
     | 
| 
      
 65 
     | 
    
         
            +
              walletno: '0244124550',
         
     | 
| 
       66 
66 
     | 
    
         
             
              provider: 'MTN',
         
     | 
| 
       67 
67 
     | 
    
         
             
              currency: 'USD', # optional
         
     | 
| 
       68 
68 
     | 
    
         
             
              token: '23571', # Optional (Only required for Vodafone Payments)
         
     | 
| 
         @@ -85,14 +85,14 @@ Supports VISA, MasterCard and any other cards based on the processors available 
     | 
|
| 
       85 
85 
     | 
    
         | 
| 
       86 
86 
     | 
    
         
             
            ```ruby
         
     | 
| 
       87 
87 
     | 
    
         
             
            # Making a Mobile Money Deposit Request
         
     | 
| 
       88 
     | 
    
         
            -
            # Please note that some of the optional fields might be required base on 
     | 
| 
      
 88 
     | 
    
         
            +
            # Please note that some of the optional fields might be required base on
         
     | 
| 
       89 
89 
     | 
    
         
             
            # which processors the BygPay Gateway is using.
         
     | 
| 
       90 
90 
     | 
    
         
             
            deposit = Bygpay::Deposit::Card.new
         
     | 
| 
       91 
     | 
    
         
            -
            card_data = { 
     | 
| 
       92 
     | 
    
         
            -
              card_number: '4111111111111111', 
     | 
| 
       93 
     | 
    
         
            -
              amount: 0.10, 
     | 
| 
       94 
     | 
    
         
            -
              expiry_month: 6, 
     | 
| 
       95 
     | 
    
         
            -
              expiry_year: 2017, 
     | 
| 
      
 91 
     | 
    
         
            +
            card_data = {
         
     | 
| 
      
 92 
     | 
    
         
            +
              card_number: '4111111111111111',
         
     | 
| 
      
 93 
     | 
    
         
            +
              amount: 0.10,
         
     | 
| 
      
 94 
     | 
    
         
            +
              expiry_month: 6,
         
     | 
| 
      
 95 
     | 
    
         
            +
              expiry_year: 2017,
         
     | 
| 
       96 
96 
     | 
    
         
             
              cvv: 123,
         
     | 
| 
       97 
97 
     | 
    
         
             
              country: 'GH', # Optional country ISO code
         
     | 
| 
       98 
98 
     | 
    
         
             
              currency: 'USD', # Optional currency ISO code
         
     | 
| 
         @@ -175,4 +175,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/nuktur 
     | 
|
| 
       175 
175 
     | 
    
         
             
            ## License
         
     | 
| 
       176 
176 
     | 
    
         | 
| 
       177 
177 
     | 
    
         
             
            The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
         
     | 
| 
       178 
     | 
    
         
            -
             
     | 
    
        data/bygpay.gemspec
    CHANGED
    
    | 
         @@ -1,4 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # coding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
       2 
3 
     | 
    
         
             
            lib = File.expand_path('../lib', __FILE__)
         
     | 
| 
       3 
4 
     | 
    
         
             
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         
     | 
| 
       4 
5 
     | 
    
         
             
            require 'bygpay/version'
         
     | 
| 
         @@ -21,11 +22,11 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       21 
22 
     | 
    
         
             
              spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         
     | 
| 
       22 
23 
     | 
    
         
             
              spec.require_paths = ["lib"]
         
     | 
| 
       23 
24 
     | 
    
         | 
| 
       24 
     | 
    
         
            -
              spec.add_development_dependency "bundler" 
     | 
| 
       25 
     | 
    
         
            -
              spec.add_development_dependency "rake" 
     | 
| 
      
 25 
     | 
    
         
            +
              spec.add_development_dependency "bundler"
         
     | 
| 
      
 26 
     | 
    
         
            +
              spec.add_development_dependency "rake"
         
     | 
| 
       26 
27 
     | 
    
         
             
              spec.add_development_dependency "rspec", "~> 3.0"
         
     | 
| 
       27 
28 
     | 
    
         
             
              spec.add_development_dependency "simplecov"
         
     | 
| 
       28 
29 
     | 
    
         
             
              spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
         
     | 
| 
       29 
     | 
    
         
            -
              spec.add_dependency "http" 
     | 
| 
       30 
     | 
    
         
            -
              spec.add_dependency "hashie" 
     | 
| 
      
 30 
     | 
    
         
            +
              spec.add_dependency "http"
         
     | 
| 
      
 31 
     | 
    
         
            +
              spec.add_dependency "hashie"
         
     | 
| 
       31 
32 
     | 
    
         
             
            end
         
     | 
    
        data/lib/bygpay/byg_response.rb
    CHANGED
    
    
    
        data/lib/bygpay/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,43 +1,43 @@ 
     | 
|
| 
       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.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Alfred Rowe
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2018-07-23 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     | 
| 
       15 
15 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
     | 
    
         
            -
                - - " 
     | 
| 
      
 17 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 19 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :development
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
     | 
    
         
            -
                - - " 
     | 
| 
      
 24 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 26 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       27 
27 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
28 
     | 
    
         
             
              name: rake
         
     | 
| 
       29 
29 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       30 
30 
     | 
    
         
             
                requirements:
         
     | 
| 
       31 
     | 
    
         
            -
                - - " 
     | 
| 
      
 31 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       32 
32 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       33 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 33 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       34 
34 
     | 
    
         
             
              type: :development
         
     | 
| 
       35 
35 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       36 
36 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       37 
37 
     | 
    
         
             
                requirements:
         
     | 
| 
       38 
     | 
    
         
            -
                - - " 
     | 
| 
      
 38 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       39 
39 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 40 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       41 
41 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       42 
42 
     | 
    
         
             
              name: rspec
         
     | 
| 
       43 
43 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -84,30 +84,30 @@ dependencies: 
     | 
|
| 
       84 
84 
     | 
    
         
             
              name: http
         
     | 
| 
       85 
85 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       86 
86 
     | 
    
         
             
                requirements:
         
     | 
| 
       87 
     | 
    
         
            -
                - - " 
     | 
| 
      
 87 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       88 
88 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       89 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 89 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       90 
90 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       91 
91 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       92 
92 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       93 
93 
     | 
    
         
             
                requirements:
         
     | 
| 
       94 
     | 
    
         
            -
                - - " 
     | 
| 
      
 94 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       95 
95 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       96 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 96 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       97 
97 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       98 
98 
     | 
    
         
             
              name: hashie
         
     | 
| 
       99 
99 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       100 
100 
     | 
    
         
             
                requirements:
         
     | 
| 
       101 
     | 
    
         
            -
                - - " 
     | 
| 
      
 101 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       102 
102 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       103 
     | 
    
         
            -
                    version:  
     | 
| 
      
 103 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       104 
104 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       105 
105 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       106 
106 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       107 
107 
     | 
    
         
             
                requirements:
         
     | 
| 
       108 
     | 
    
         
            -
                - - " 
     | 
| 
      
 108 
     | 
    
         
            +
                - - ">="
         
     | 
| 
       109 
109 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       110 
     | 
    
         
            -
                    version:  
     | 
| 
      
 110 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       111 
111 
     | 
    
         
             
            description: Ruby Wrapper to process payments via any installed Bygpay Payment Gateway
         
     | 
| 
       112 
112 
     | 
    
         
             
            email:
         
     | 
| 
       113 
113 
     | 
    
         
             
            - alfred@encodevlabs.com
         
     | 
| 
         @@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       157 
157 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       158 
158 
     | 
    
         
             
            requirements: []
         
     | 
| 
       159 
159 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       160 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 160 
     | 
    
         
            +
            rubygems_version: 2.7.7
         
     | 
| 
       161 
161 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       162 
162 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       163 
163 
     | 
    
         
             
            summary: Bygpay Payment Gateway Ruby SDK
         
     |