mtn_cm_momo_sdk 0.1.7 → 0.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f79c93f27b8539f3855a0e0246d3905a315d688
4
- data.tar.gz: 550d5173965fbbc084aed9793ceed483bff4db65
3
+ metadata.gz: 904f4f78fa17f2a7dba02f97177df04ad8349e43
4
+ data.tar.gz: a3234f2ccaf509a30975ab4138ac7859395af3df
5
5
  SHA512:
6
- metadata.gz: dc07f74bff2f2f0f93d8e096a3d3fd3c1f206d4e0ee44cc95abbae788a06708e56cd4448d26db57a5e66aa9c2217d06fc2d060431e957a4436952495705bfdf4
7
- data.tar.gz: a7748b0fa0e1a251a3f62637cc6aa1fd7f4792fa0839b989e42d13a43afe25c534417dca4cde24015a4b181b10b42a98e2581044af9bd513a32d01d0acc8185e
6
+ metadata.gz: 3e7b70508b20d4dcd9b2439703d43158e48ea98d8fb7e1b49b4a8b72293ff6871c623a69f59229b3554bbb99aab147ce9ae0537bd529af24e1a17c6077b59365
7
+ data.tar.gz: c1dc9b3f8118fc3d846675b4ae4dffbb517bb6677895710e8b98f32d6bd53a506c8c06c47c25a658ad00029a7b74c07c5df1ef4cc8d779a812db9024153ecfae
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -6,6 +6,7 @@ MtnCmMomoSdk.setup do |config|
6
6
  # https://apps.ionic.io/apps
7
7
  config.developer_email = ENV["MTN_DEVELOPER_EMAIL"]
8
8
  config.developer_clP = ENV["MTN_DEVELOPER_CLP"]
9
+ config.check_ssl = ENV["MTN_DEVELOPER_CHECK_SSL"]
9
10
 
10
11
  # ==> Configuration for the location of the API
11
12
  # Refer to the Mtn developer site documentation for the correct location
@@ -10,6 +10,9 @@ module MtnCmMomoSdk
10
10
  mattr_accessor :developer_clP
11
11
  @@developer_clP = ""
12
12
 
13
+ mattr_accessor :check_ssl
14
+ @@check_ssl = true
15
+
13
16
  # API URL
14
17
  mattr_accessor :mtn_api_url
15
18
  @@mtn_api_url = "https://developer.mtn.cm/OnlineMomoWeb/faces/transaction/"
@@ -40,8 +40,8 @@ module MtnCmMomoSdk
40
40
 
41
41
  private
42
42
 
43
- def format_data(tel,amount)
44
- tel = tel.gsub("+237","")
43
+ def format_data(tel, amount)
44
+ tel = tel.gsub("+237", "")
45
45
  amount = amount.to_i.to_s
46
46
  da = body.merge!(_amount: amount)
47
47
  .merge!(_tel: tel)
@@ -66,7 +66,11 @@ module MtnCmMomoSdk
66
66
  end
67
67
 
68
68
  def call_server(url, data)
69
- resp = self.class.get(url, query: data)
69
+ puts MtnCmMomoSdk.check_ssl
70
+
71
+ check = MtnCmMomoSdk.check_ssl.to_s.downcase == "true"
72
+
73
+ resp = self.class.get(url, query: data,verify: check)
70
74
  if resp.parsed_response == "-1"
71
75
  {
72
76
  :request_status => false,
@@ -1,3 +1,3 @@
1
1
  module MtnCmMomoSdk
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtn_cm_momo_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fomekong Tekatsop Evaris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-25 00:00:00.000000000 Z
11
+ date: 2018-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,6 +117,7 @@ extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
119
  - ".gitignore"
120
+ - ".rspec"
120
121
  - ".travis.yml"
121
122
  - CODE_OF_CONDUCT.md
122
123
  - Gemfile
@@ -151,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
152
  version: '0'
152
153
  requirements: []
153
154
  rubyforge_project:
154
- rubygems_version: 2.6.13
155
+ rubygems_version: 2.6.14.3
155
156
  signing_key:
156
157
  specification_version: 4
157
158
  summary: MTN Cameroon Mobile Mobile Sdk , allowing you do ,BUY NOW ,REFUND,DONATE,CHECK