iats_payments 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01d0a9a6ca20cac127d8c610edde98c103b6f9fa
4
- data.tar.gz: 94763665a5b2c68e1b7837c1b2dc27c99780d32d
3
+ metadata.gz: 2aed1379aa0e927311b5d19e9364752ef0a6822a
4
+ data.tar.gz: 81dbcea35a1bb9ce6a25bfa20addf8e44aff34ae
5
5
  SHA512:
6
- metadata.gz: c274a6b1799e77dc036e22c8ac3006fd3bcb9fe04ea939705facc477f44833b95d68c8f208819afa01b5013b52daea8ec274ed6ea145d0ab025fd220fb530b49
7
- data.tar.gz: 0d3806a50b08a4e0b0b9da40b37d7729820b384fe626108ed86843315a2affc53f29bd90e892751e71db0a655aafaa97c19cf0cee98b5608d50b48b175b2cf62
6
+ metadata.gz: 2983a20c8ae770eafaacfd4b8c47bd4bd83f36d73ae7788cc983de0759585b03897927813f77af0ecf349006737880bb4cc80a1c6a3dd85c2f651414b522f983
7
+ data.tar.gz: 230c229d9b2895c0fcdd640282d3100842332d735cf46148ef3b2ffc65d297236972a2cd79c1f6db40267274c0d9aa687419a7575ba9c926dbc80eac55d43943
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # IatsPayments
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -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{Basic Payments using the IATS sytem}
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/developers/underlying-soap-api
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/developers/underlying-soap-api
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/developers/underlying-soap-api
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,3 +1,3 @@
1
1
  module IatsPayments
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: iats_payments
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
  - Tim Glen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-09 00:00:00.000000000 Z
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.2.2
127
+ rubygems_version: 2.5.2
128
128
  signing_key:
129
129
  specification_version: 4
130
- summary: Basic Payments using the IATS sytem
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