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 +4 -4
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +11 -0
- data/Gemfile.lock +2 -2
- data/README.md +49 -2
- data/fonepaisa.gemspec +1 -1
- data/lib/fonepaisa/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 892b988c3eb56e3c57ac78384f2c4bb9f9b7e798046d7524b2ccc5723e4e291b
|
4
|
+
data.tar.gz: 1a2360332bbab681b9ea3d92737eca70447198ef00387d4b517692bd0b0dc354
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f739a2511f703778b12936989670ac699fe9fe2bb63ef2a7fa65c0403277d1471e6c6836438ca2a4bd1353ff61aa6e59c19928ca4f2f2c3c1f03cf4af412828
|
7
|
+
data.tar.gz: a3d851fec908efd37581de53e83175a05cc5b44706f1f919aed0b75f432da8ad7271b9eded2422d8b26b9ee287c0ad0a39c03bfb28798c87b4887b432b684a17
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
ADDED
@@ -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
|
data/Gemfile.lock
CHANGED
@@ -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 (
|
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 (~>
|
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 [](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.
|
data/fonepaisa.gemspec
CHANGED
@@ -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', '~>
|
20
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
21
21
|
spec.add_development_dependency 'rubocop', '~> 1.6'
|
22
22
|
end
|
data/lib/fonepaisa/version.rb
CHANGED
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.
|
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:
|
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: '
|
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: '
|
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
|