sisow_ideal 0.0.1 → 0.0.2
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.
- data/README.md +2 -2
- data/lib/sisow_ideal/client.rb +1 -1
- data/lib/sisow_ideal/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -36,7 +36,7 @@ order.update_attributes(:trxid => response.trxid)
|
|
36
36
|
redirect_to response.url
|
37
37
|
|
38
38
|
# How to handle report on the report url
|
39
|
-
# For safety reasons
|
39
|
+
# For safety reasons sisow calls a notify url for updating payment status before redirecting back to the application
|
40
40
|
order = Order.find_by_trxid(params[:trxid])
|
41
41
|
response = client.status_request(
|
42
42
|
:trxid => order.trxid,
|
@@ -44,7 +44,7 @@ response = client.status_request(
|
|
44
44
|
)
|
45
45
|
order.update_attributes(:status => response.status)
|
46
46
|
|
47
|
-
# When
|
47
|
+
# When sisow redirects the user back you can check if the payment was succesfull bij finding the order object
|
48
48
|
@order = Order.find_by_trxid(params[:trxid])
|
49
49
|
```
|
50
50
|
## Note on Patches/Pull Requests
|
data/lib/sisow_ideal/client.rb
CHANGED
@@ -17,7 +17,7 @@ module SisowIdeal
|
|
17
17
|
:format => :xml
|
18
18
|
).parsed_response).directoryresponse.directory.issuer
|
19
19
|
|
20
|
-
response.kind_of?(Array) ? response.map { |b| [b.issuername, b.issuerid] } : [response.issuername, response.issuerid]
|
20
|
+
response.kind_of?(Array) ? response.map { |b| [b.issuername, b.issuerid] } : [[response.issuername, response.issuerid]]
|
21
21
|
end
|
22
22
|
|
23
23
|
## Setup a transaction
|
data/lib/sisow_ideal/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sisow_ideal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|