payg 0.0.1 → 0.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 +1 -2
- data/lib/payg/constants.rb +3 -3
- data/payg-ruby.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d723ea01e15736f76c21550d043196c0313144c4105a333377fdcbd2a48df76
|
4
|
+
data.tar.gz: 69ea7daeb72a09599df357abf1ba93154fad28490fac008336f9ed29b8c7fbc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1254d334ee81556734d01b527591f435e229beff0c280fb6060827017a98db30fb7232eb6a897fb8c85ac7c95d7fd1269636913141589b3d7ab46776f5583636
|
7
|
+
data.tar.gz: 6a374821b313006cd962a948487f9b48e83e19553f0a54306786d1e6df428b1f2cb61ef5899455f65b5de58a0f4bc4607ccf8a0d35ea413372b401d1f8456594
|
data/README.md
CHANGED
@@ -39,8 +39,7 @@ If you are using rails, the right place to do this might be `config/initializers
|
|
39
39
|
|
40
40
|
```rb
|
41
41
|
|
42
|
-
payload = { Merchantkeyid: "8792", UniqueRequestId: "035bbf02a1f", RequestDateTime: "06232021", RedirectUrl: "https://payg.in", OrderAmount: "100", OrderAmountData: { AmountTypeDesc: "3", Amount: "2"}, CustomerData: {
|
43
|
-
eNo: "8619083450", Email: "demo@gmail.com"} }
|
42
|
+
payload = { Merchantkeyid: "8792", UniqueRequestId: "035bbf02a1f", RequestDateTime: "06232021", RedirectUrl: "https://payg.in", OrderAmount: "100", OrderAmountData: { AmountTypeDesc: "3", Amount: "2"}, CustomerData: { MobileNo: "8619083450", Email: "demo@gmail.com"} }
|
44
43
|
|
45
44
|
Payg::Order.create(payload.to_json)
|
46
45
|
```
|
data/lib/payg/constants.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Version and other constants are defined here
|
2
2
|
module Payg
|
3
|
-
BASE_URI = 'https://
|
4
|
-
TEST_URL = 'https://
|
5
|
-
VERSION = '0.
|
3
|
+
BASE_URI = 'https://paygapi.payg.in/payment/api/'.freeze
|
4
|
+
TEST_URL = 'https://paygapi.payg.in/payment/api/'.freeze
|
5
|
+
VERSION = '0.1'.freeze
|
6
6
|
end
|
data/payg-ruby.gemspec
CHANGED
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_development_dependency 'coveralls', '~> 0.8'
|
21
21
|
spec.add_development_dependency 'minitest', '~> 5.11'
|
22
22
|
spec.add_development_dependency 'rake', '~> 12.0'
|
23
|
-
spec.add_development_dependency 'pry'
|
24
23
|
|
25
24
|
if RUBY_VERSION >= '2.1.0'
|
26
25
|
# rubocop is only run in the latest ruby build
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '12.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: pry
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: rubocop
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|