iats_payments 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 +4 -4
- data/README.md +27 -2
- data/iats_payments.gemspec +1 -1
- data/lib/iats_payments/client/customer_link_client.rb +1 -1
- data/lib/iats_payments/client/process_link_client.rb +1 -1
- data/lib/iats_payments/client/report_link_client.rb +1 -1
- data/lib/iats_payments/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aed1379aa0e927311b5d19e9364752ef0a6822a
|
4
|
+
data.tar.gz: 81dbcea35a1bb9ce6a25bfa20addf8e44aff34ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2983a20c8ae770eafaacfd4b8c47bd4bd83f36d73ae7788cc983de0759585b03897927813f77af0ecf349006737880bb4cc80a1c6a3dd85c2f651414b522f983
|
7
|
+
data.tar.gz: 230c229d9b2895c0fcdd640282d3100842332d735cf46148ef3b2ffc65d297236972a2cd79c1f6db40267274c0d9aa687419a7575ba9c926dbc80eac55d43943
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# IatsPayments
|
2
2
|
|
3
|
-
|
3
|
+
This is a basic wrapper around the IATS Payments SOAP services, using the Savon gem as a SOAP client.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,32 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
For example, to process a credit card:
|
22
|
+
|
23
|
+
```
|
24
|
+
message = {
|
25
|
+
credit_card_num: '4111111111111111',
|
26
|
+
credit_card_expiry: '01/25',
|
27
|
+
cvv2: '797',
|
28
|
+
mop: 'VISA', # VISA, MC, AMX, DSC
|
29
|
+
first_name: 'Test',
|
30
|
+
last_name: 'User',
|
31
|
+
address: '63 Hillard Trail',
|
32
|
+
city: 'Toronto',
|
33
|
+
state: 'ON',
|
34
|
+
zip_code: 'L1E1Y5',
|
35
|
+
total: '1'
|
36
|
+
}
|
37
|
+
process_link_client = IatsPayments::ProcessLinkClient.new
|
38
|
+
process_link_client.agent_code = "TEST88"
|
39
|
+
process_link_client.password = "TEST88"
|
40
|
+
process_link_client.process_credit_card(message)
|
41
|
+
```
|
42
|
+
|
43
|
+
See the customer_link_client, process_link_client, and report_link_client for available methods. To see the available required/available request parameters for each method, see: http://home.iatspayments.com/developer-info/underlying-soap-api
|
44
|
+
|
45
|
+
Each parameter is passed as a "message" hash, lower-cased and underscorized (snake-case). Savon takes care of matching up the parameters and setting them to the right case. If you need to force a specific parameter, just pass it as a string-indexed hash item rather than as a symbol.
|
46
|
+
|
22
47
|
|
23
48
|
## Contributing
|
24
49
|
|
data/iats_payments.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = IatsPayments::VERSION
|
9
9
|
spec.authors = ["Tim Glen"]
|
10
10
|
spec.email = ["tim@tag.ca"]
|
11
|
-
spec.summary = %q{
|
11
|
+
spec.summary = %q{A simple wrapper around the IATS Payments SOAP service}
|
12
12
|
spec.description = nil
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# To see the available required/available request parameters for each method, see:
|
2
|
-
# http://home.iatspayments.com/
|
2
|
+
# http://home.iatspayments.com/developer-info/underlying-soap-api
|
3
3
|
#
|
4
4
|
# Each parameter is passed as a "message" hash, lower-cased and underscorized (snake-case).
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# To see the available required/available request parameters for each method, see:
|
2
|
-
# http://home.iatspayments.com/
|
2
|
+
# http://home.iatspayments.com/developer-info/underlying-soap-api
|
3
3
|
#
|
4
4
|
# Each parameter is passed as a "message" hash, lower-cased and underscorized (snake-case).
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# To see the available required/available request parameters for each method, see:
|
2
|
-
# http://home.iatspayments.com/
|
2
|
+
# http://home.iatspayments.com/developer-info/underlying-soap-api
|
3
3
|
#
|
4
4
|
# Each parameter is passed as a "message" hash, lower-cased and underscorized (snake-case).
|
5
5
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iats_payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Glen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
@@ -124,10 +124,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.5.2
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
|
-
summary:
|
130
|
+
summary: A simple wrapper around the IATS Payments SOAP service
|
131
131
|
test_files:
|
132
132
|
- spec/lib/iats_payments/client/customer_link_client_spec.rb
|
133
133
|
- spec/lib/iats_payments/client/process_link_client_spec.rb
|