ccavenue 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4cc0bc8b21a63b71804e051affe21c351e086db
4
- data.tar.gz: 0fb5d5093bf56c2ce614b41ff7aedb8a4ba3b387
3
+ metadata.gz: 9ae73270981857d1b65f59dcf61503d52b437a5b
4
+ data.tar.gz: 39681092e352b51f6af125b1fb862c2c1e295ade
5
5
  SHA512:
6
- metadata.gz: fc3dbc7d2eff9d298a8278fc891ac53656c1e9ab91f03ca3d3c071395826db1325c1b03a9c85be8c232de04d5b38aaf2d8eccbfc2abbeaeb5af4b6ea4ad34d2a
7
- data.tar.gz: 65d762b827f14e76238c5039237c40b83c148a1c8d77e99aa17a4ed1d9727a218d39990d09ff298e09c5866f4e15aff966eb789126c9cf9fd00df6afb0babb4f
6
+ metadata.gz: db453d30868f351146b7a5ad8b31bc78f86942db03ab260028e64d0f2eeeb0364bf51f81b2e7e774b6bbb18d6b19d4947b9acb2773799cc7627d12771e7f7434
7
+ data.tar.gz: ea8576a18cda9ca77b8fd11a39020c20818bf17536181f2c8fd08dc4a3a3200e7f2a9501123f0bf7ad8efa878412166aa4d1d96aa5824a61c4cd29077e2a0d8a
data/README.md CHANGED
@@ -3,123 +3,20 @@ CCAvenue integration Ruby.
3
3
 
4
4
  [CCAvenue Payment Gateway](https://www.ccavenue.com)
5
5
 
6
- ####Demo & Other resources: ####
6
+ **Resources:**
7
7
 
8
- [http://kishanio.github.io/CCAvenue-Ruby-Gem/](http://kishanio.github.io/CCAvenue-Ruby-Gem/)
8
+ [Wiki/Documentation/Usage](http://kishanio.github.io/2014/03/15/ccavenue-ruby-gem.html)
9
9
 
10
- ####Dependency: ####
10
+ **Download**
11
11
 
12
- None
12
+ Rubygems.org: [https://rubygems.org/gems/ccavenue](https://rubygems.org/gems/ccavenue)
13
13
 
14
- ####Usage:####
14
+ **Usage**
15
15
 
16
- **_Rails:_**
16
+ ```bash
17
+ $ gem install ccavenue
18
+ ```
17
19
 
18
- **GEMFILE**
20
+ **Licence**
19
21
 
20
- gem 'ccavenue'
21
-
22
- **application_controller.rb**
23
-
24
- # Create an instance with merchantid, workingkey and redirect url as parameter
25
- def ccavenue
26
- return @ccavenue = Ccavenue::Payment.new(<TODO: MERCHANT ID>,<TODO: MERCHANT WORKING KEY>,<TODO: REDIRECT URL>)
27
- end
28
-
29
-
30
- **Orders page (Redirect)**
31
-
32
- def send_to_ccavenue
33
-
34
-
35
- # Merchant id needed in view
36
- @CCAVENUE_MERCHANT_ID = APP_CONFIG[:ave_merchant_id]
37
-
38
- # CCAvenue requires a new order id for each request so if transaction fails we can use #same ones again accross our website.
39
- order_id = Time.now.strftime('%d%m%H%L') + <TODO: Order Id>
40
-
41
- # Parameters:
42
- #
43
- # order_id
44
- # price
45
- # billing_name
46
- # billing_address
47
- # billing_city
48
- # billing_zip
49
- # billing_state
50
- # billing_country
51
- # billing_email
52
- # billing_phone
53
- # billing_notes
54
- # delivery_name
55
- # delivery_address
56
- # delivery_city
57
- # delivery_zip
58
- # delivery_state
59
- # delivery_country
60
- # delivery_email
61
- # delivery_phone
62
- # delivery_notes
63
- #
64
- #
65
- # Mandatory - order_id,price,billing_name,billing_address,billing_city,billing_zip,billing_state,billing_country,billing_email,billing_phone
66
- # Optional - billing_notes,delivery_name,delivery_address,delivery_city,delivery_zip,delivery_state,delivery_country,delivery_email,delivery_phone,delivery_notes
67
-
68
- # Creating encrypted data
69
- @encRequest = ccavenue.request(order_id,<TODO: Price>,@order.full_name,"#{@order.address1} ,#{@order.address2}",@order.city,@order.zip,@order.state,@order.country,@order.email,@order.phone)
70
-
71
- render "<TODO: Redirect Page>"
72
- end
73
-
74
-
75
- **Redirect view**
76
-
77
- <form id="redirect" method="post" name="redirect" action="http://www.ccavenue.com/shopzone/cc_details.jsp">
78
- <input type="hidden" name="encRequest" value="<%= @encRequest %>">
79
- <input type="hidden" name="Merchant_Id" value="<%=@CCAVENUE_MERCHANT_ID%>">
80
- </form>
81
-
82
- <script>
83
- document.getElementById("redirect").submit();
84
- </script>
85
-
86
- **CCAvenue Response Redirect Page**
87
-
88
- def payment_confirm # Method post
89
-
90
- # parameter to response is encrypted reponse we get from CCavenue
91
- # Return parameters:
92
- # Auth Description: <String: Payment Failed/Success>
93
- # Checksum Verification <Bool: True/False>
94
- # Response Data: <HASH/Array: Order_id, amount etc>
95
-
96
- authDesc,verify,data = ccavenue.response(params['encResponse'])
97
-
98
- order_Id = data["Order_Id"][0]
99
-
100
- end
101
-
102
-
103
-
104
- The MIT License
105
- ===============
106
-
107
- Copyright 2014 Kishan Thobhani
108
-
109
- Permission is hereby granted, free of charge, to any person obtaining a copy
110
- of this software and associated documentation files (the "Software"), to deal
111
- in the Software without restriction, including without limitation the rights
112
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
113
- copies of the Software, and to permit persons to whom the Software is
114
- furnished to do so, subject to the following conditions:
115
-
116
- The above copyright notice and this permission notice shall be included in
117
- all copies or substantial portions of the Software.
118
-
119
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
120
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
121
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
122
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
123
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
124
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
125
- THE SOFTWARE.
22
+ It's Licenced under [MIT](https://raw.github.com/kishanio/CCAvenue-Ruby-Gem/master/LICENSE.txt)
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["thobhanikishan@gmail.com"]
11
11
  spec.description = %q{CCAvenue Payment Gateway.}
12
12
  spec.summary = %q{Encryption & Decryption in core ruby itself. Request data, Response}
13
- spec.homepage = "http://kishanio.github.io/CCAvenue-Ruby-Gem/"
13
+ spec.homepage = "http://kishanio.github.io/2014/03/15/ccavenue-ruby-gem.html"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
1
  module Ccavenue
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ccavenue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kishan Thobhani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -53,7 +53,7 @@ files:
53
53
  - ccavenue.gemspec
54
54
  - lib/ccavenue.rb
55
55
  - lib/ccavenue/version.rb
56
- homepage: http://kishanio.github.io/CCAvenue-Ruby-Gem/
56
+ homepage: http://kishanio.github.io/2014/03/15/ccavenue-ruby-gem.html
57
57
  licenses:
58
58
  - MIT
59
59
  metadata: {}