fonepaisa 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: 4b9b4888598457e984a9526dfaded9504136cf5f211f2968ead6cadb8cc4d79b
4
- data.tar.gz: 1b8818296ff35f333ccea880a24294d525a5664d630cc2882774130b9c3ac2ac
3
+ metadata.gz: 892b988c3eb56e3c57ac78384f2c4bb9f9b7e798046d7524b2ccc5723e4e291b
4
+ data.tar.gz: 1a2360332bbab681b9ea3d92737eca70447198ef00387d4b517692bd0b0dc354
5
5
  SHA512:
6
- metadata.gz: a64b142817cf2bf8099ede143b94a8d5216c23252da9cbb251a87a48644d6ab32b4b54aabd1d3206b96cf768cbae041611dd6f4898834b825265f3c6066d3d5b
7
- data.tar.gz: 219a7cb98432cceff6e0fa205d1c8c3e1e0e8445aec75e29f37f7055732129cf3b56c048744503267896b2475663f37864e46f087510ea4067d1784a7297e367
6
+ metadata.gz: 2f739a2511f703778b12936989670ac699fe9fe2bb63ef2a7fa65c0403277d1471e6c6836438ca2a4bd1353ff61aa6e59c19928ca4f2f2c3c1f03cf4af412828
7
+ data.tar.gz: a3d851fec908efd37581de53e83175a05cc5b44706f1f919aed0b75f432da8ad7271b9eded2422d8b26b9ee287c0ad0a39c03bfb28798c87b4887b432b684a17
@@ -1,3 +1,7 @@
1
1
  ## 0.1.0 / 2020-12-20
2
2
 
3
3
  * Initial Gem Release
4
+
5
+ ## 0.2.0 / 2021-01-01
6
+
7
+ * Updated readme doc
@@ -0,0 +1,11 @@
1
+ # Contributions
2
+
3
+ Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests, but before proceed we'll assume you are agree with [this license agreement](LICENSE.txt)
4
+
5
+ If all good then follow below steps:
6
+
7
+ 1. Fork this repository
8
+ 2. If you've added code that should be tested
9
+ 3. Create your branch from `master`
10
+ 4. Commit your changes and push to the branch
11
+ 5. Create a Pull Request
@@ -21,7 +21,7 @@ GEM
21
21
  parser (2.7.2.0)
22
22
  ast (~> 2.4.1)
23
23
  rainbow (3.0.0)
24
- rake (10.5.0)
24
+ rake (13.0.3)
25
25
  regexp_parser (2.0.0)
26
26
  rest-client (2.1.0)
27
27
  http-accept (>= 1.7.0, < 2.0)
@@ -52,7 +52,7 @@ PLATFORMS
52
52
  DEPENDENCIES
53
53
  bundler (~> 2.1.4)
54
54
  fonepaisa!
55
- rake (~> 10.0)
55
+ rake (~> 13.0)
56
56
  rubocop (~> 1.6)
57
57
 
58
58
  BUNDLED WITH
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # fonePaisa
1
+ # fonePaisa [![Circle CI](https://circleci.com/gh/RakeshTejra/fonepaisa.svg?style=svg)](https://circleci.com/gh/RakeshTejra/fonepaisa)
2
2
 
3
- This gem interact with fonePaisa payment gateway APIs.
3
+ This gem interact with fonePaisa payment gateway APIs. Currently the gem covers only Payment Request URL API.
4
4
 
5
5
  ## Getting started
6
6
 
@@ -17,3 +17,50 @@ and run:
17
17
  ```
18
18
  bundle install
19
19
  ```
20
+
21
+ Or install it by yourself:
22
+
23
+ ```
24
+ gem install fonepaisa
25
+ ```
26
+
27
+ ### Configuration
28
+
29
+ Add below configuration in initializer
30
+
31
+ ``` ruby
32
+ # config/initializers/fonepaisa.rb
33
+
34
+ Fonepaisa.configure do |config|
35
+ config.api_key = 'Your fonePaisa API Key'
36
+ config.salt = 'Your fonePaisa Salt'
37
+ end
38
+ ```
39
+
40
+ ### Uses
41
+
42
+ ##### GET PAYMENT REQUEST URL
43
+
44
+ fonePaisa provides an API which returns a unique payment page URL on your merchant server in response which can be used in any browser to show the payment selection page and complete the transaction.
45
+
46
+ ```ruby
47
+ request_params = {
48
+ amount: 100,
49
+ currency: 'INR',
50
+ mode: 'Live,
51
+ ...
52
+ }
53
+
54
+ response = Fonepaisa::PaymentRequestURL.new(request_params).execute
55
+ ```
56
+ In response you will get a payment execution URL in case of success. Refer the fonePaisa technical integration guide for complete list of parameters to be posted in payment request.
57
+
58
+ To validate the response received from fonePaisa
59
+
60
+ ```ruby
61
+ Fonepaisa::Client.new(response_params).response_valid?
62
+ ```
63
+
64
+ ## Contributing
65
+
66
+ Read the [Contributing Guidelines](CONTRIBUTING.md) and open a Pull Request.
@@ -17,6 +17,6 @@ Gem::Specification.new do |spec|
17
17
  spec.add_dependency 'rest-client', '~> 2.1'
18
18
 
19
19
  spec.add_development_dependency 'bundler', '~> 2.1.4'
20
- spec.add_development_dependency 'rake', '~> 10.0'
20
+ spec.add_development_dependency 'rake', '~> 13.0'
21
21
  spec.add_development_dependency 'rubocop', '~> 1.6'
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Fonepaisa
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fonepaisa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rakesh Tejra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-17 00:00:00.000000000 Z
11
+ date: 2021-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -78,6 +78,7 @@ files:
78
78
  - ".gitignore"
79
79
  - ".rubocop.yml"
80
80
  - CHANGELOG.md
81
+ - CONTRIBUTING.md
81
82
  - Gemfile
82
83
  - Gemfile.lock
83
84
  - LICENSE