worldpay_iadmin 1.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.
- data/CHANGELOG +4 -0
- data/README +14 -5
- data/lib/worldpay_iadmin.rb +0 -3
- data/test/worldpay_iadmin_test.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -1,21 +1,30 @@
|
|
1
|
-
== WorldPay iadmin
|
1
|
+
== WorldPay iadmin Class
|
2
2
|
|
3
3
|
WorldPay offer an api to do some remote administration tasks relating to FuturePay. The iadmin
|
4
4
|
api is not available by default. You must contact WorldPay and ask them to activate it for you. A
|
5
5
|
new installation id and password will be provided access the api. The api allows you to cancel a
|
6
|
-
FuturePay agreement, change the start date, debit an agreement, or modify the amount.
|
7
|
-
docs for a list of error responses you can expect.
|
6
|
+
FuturePay agreement, change the start date, debit an agreement, or modify the amount.
|
8
7
|
|
9
|
-
|
8
|
+
This class provides a simple lightweight interface to this api.
|
9
|
+
|
10
|
+
See the WorldPay docs for a list of error responses you can expect:
|
11
|
+
|
12
|
+
http://www.rbsworldpay.com/support/kb/bg/recurringpayments/rpfp8000.html
|
10
13
|
|
11
14
|
== Requirements
|
12
15
|
|
13
16
|
* Ruby 1.8.6 with openssl (Should work with previous versions. I've just not tested it)
|
14
17
|
* Valid WorldPay account
|
15
|
-
* Fakeweb gem
|
18
|
+
* Fakeweb gem (only if running the tests)
|
19
|
+
|
20
|
+
== Installation
|
21
|
+
|
22
|
+
gem install worldpay_iadmin
|
16
23
|
|
17
24
|
== Example Usage:
|
18
25
|
|
26
|
+
require 'worldpay_iadmin'
|
27
|
+
|
19
28
|
# Create a new WorldpayIadmin instance
|
20
29
|
@installation_id = "12345"
|
21
30
|
@password = "mypass"
|
data/lib/worldpay_iadmin.rb
CHANGED
@@ -71,9 +71,6 @@ class WorldpayIadmin
|
|
71
71
|
require 'net/https'
|
72
72
|
require 'uri'
|
73
73
|
|
74
|
-
# http://www.rbsworldpay.com/support/kb/bg/recurringpayments/rpfp8000.html
|
75
|
-
|
76
|
-
|
77
74
|
attr_accessor :worldpay_id, :password, :test_mode, :production_url, :test_url
|
78
75
|
|
79
76
|
def initialize(worldpay_id, password, test_mode=false)
|
@@ -50,7 +50,7 @@ class WorldpayIadminTest < Test::Unit::TestCase
|
|
50
50
|
assert create_worldpay_iadmin("Y,transId,A,rawAuthMessage,Payment successful").debit("232323", 9.99)
|
51
51
|
end
|
52
52
|
|
53
|
-
def
|
53
|
+
def test_debit_fail
|
54
54
|
assert !create_worldpay_iadmin("E,Agreement already finished").debit("232323", 9.99)
|
55
55
|
end
|
56
56
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: worldpay_iadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Cummings
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-16 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|