iats_payments 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250ed8556963c96f12ed79bca480583e7b7e2c25
|
4
|
+
data.tar.gz: 2c03247f54b7435cd4910ccdc3c44c1c5b3191e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2934ab81791decbf11e29c9db246b55c1c289dd55f642df022d92ee297938684fee830ddd0e6cb43b7de6c8d24b0979f24ab12916b97fe677c6ac30dde4fc8c
|
7
|
+
data.tar.gz: 5e2b304f467b1ee6fc0ccd419f1465fe5f5601fc20bef0aa63879fc8916d6fc4aa4c1f706fc66929a43f44be861743893e2e39fa0c4a17b6e49e5350a961ccc9
|
data/lib/iats_payments/client.rb
CHANGED
@@ -18,7 +18,11 @@ module IatsPayments
|
|
18
18
|
locals[:message][:agent_code] = agent_code if locals[:message] && locals[:message][:agent_code].blank?
|
19
19
|
locals[:message][:password] = password if locals[:message] && locals[:message][:password].blank?
|
20
20
|
response = soap_client.call(operation_name, locals, &block)
|
21
|
-
response.body["#{operation_name}
|
21
|
+
if response.body["#{operation_name}v1_response".to_sym].present?
|
22
|
+
response.body["#{operation_name}v1_response".to_sym]["#{operation_name}v1_result".to_sym][:iatsresponse]
|
23
|
+
else
|
24
|
+
response.body["#{operation_name}_v1_response".to_sym]["#{operation_name}_v1_result".to_sym][:iatsresponse]
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
28
|
def methods
|
@@ -11,6 +11,70 @@ module IatsPayments
|
|
11
11
|
ENDPOINT_URL + "?WSDL"
|
12
12
|
end
|
13
13
|
|
14
|
+
# |------------------------------------------------------------------------------------------|
|
15
|
+
# | Parameter | Notes/Options | Char. Limit |
|
16
|
+
# | ==========================================================================================
|
17
|
+
# | agentCode | | 10 |
|
18
|
+
# | password | | 10 |
|
19
|
+
# | customerIPAddress | This is the IP address of the donor’s computer. | N/A |
|
20
|
+
# | | Please send to fully utilise the Fraud tools | |
|
21
|
+
# | | available from iATS. IPv4 only. | |
|
22
|
+
# | customerCode | You can provide the Token (Customer code); if | 40 |
|
23
|
+
# | | none is present, the iATS system will | |
|
24
|
+
# | | automatically assign one. | |
|
25
|
+
# | firstName | Optional but highly recommended | 100 |
|
26
|
+
# | lastName | Optional but highly recommended | 100 |
|
27
|
+
# | companyName | | 100 |
|
28
|
+
# | address | Optional but highly recommended | 100 |
|
29
|
+
# | city | Optional but highly recommended | 40 |
|
30
|
+
# | state | State or province (NA only). Optional but | 40 |
|
31
|
+
# | | highly recommended | |
|
32
|
+
# | zipCode | Optional but highly recommended | 40 |
|
33
|
+
# | phone | | 40 |
|
34
|
+
# | fax | | 40 |
|
35
|
+
# | alternatePhone |Mobile | 40 |
|
36
|
+
# | email | | 100 |
|
37
|
+
# | comment | | 100 |
|
38
|
+
# | recurring | Boolean: true (1)/false (0). | N/A |
|
39
|
+
# | | Required field – Use True if iATS will hold | |
|
40
|
+
# | | schedule, False if you will. | |
|
41
|
+
# | amount | Prevent the use of commas (,) within the dollar | N/A |
|
42
|
+
# | | amount fields if possible. iATS reads a comma | |
|
43
|
+
# | | as a period in this field to compensate for | |
|
44
|
+
# | | different countries use of the comma within | |
|
45
|
+
# | | currency. For example: $1,000 | |
|
46
|
+
# | beginDate | Value=”dateTime”; ISO 8601 format. | N/A |
|
47
|
+
# | | e.g. 2008-10-31T15:07:38.6875000 | |
|
48
|
+
# | | ("yyyy-MM-dd'T'HH:mm:ss.fffffffZ") | |
|
49
|
+
# | | Required, but if recurring status is set to false,| |
|
50
|
+
# | | use any generic values. iATS will override with | |
|
51
|
+
# | | default placeholder data. | |
|
52
|
+
# | endDate | Value=”dateTime”; ISO 8601 format. | N/A |
|
53
|
+
# | | e.g. 2008-10-31T15:07:38.6875000 | |
|
54
|
+
# | | ("yyyy-MM-dd'T'HH:mm:ss.fffffffZ") | |
|
55
|
+
# | | Required, but if recurring status is set to false,| |
|
56
|
+
# | | use any generic values. iATS will override with | |
|
57
|
+
# | | default placeholder data. | |
|
58
|
+
# | scheduleType | Options: Weekly, Monthly, Quarterly, Annually | N/A |
|
59
|
+
# | scheduleDate | Options: Monthly: 1~28,29,30 or 31; | N/A |
|
60
|
+
# | | Weekly: 1~7 (where Sunday = 1 and Saturday = 7) | |
|
61
|
+
# | | Quarterly or Annually: empty string | |
|
62
|
+
# | creditCardCustomerName | Donor’s name on credit card. If left empty, we | 30 |
|
63
|
+
# | | will use firstName + lastName, and cut at 30 | |
|
64
|
+
# | | characters. | |
|
65
|
+
# | creditCardNum | | 32 digits |
|
66
|
+
# | creditCardExpiry | “MM/YY” | 10 |
|
67
|
+
# | mop | NA: VISA, MC, AMX, DSC | N/A |
|
68
|
+
# | | UK: VISA, MC, AMX, MAESTR | |
|
69
|
+
# | title | | |
|
70
|
+
# | country | | |
|
71
|
+
# | item1 | | |
|
72
|
+
# | item2 | | |
|
73
|
+
# | item3 | | |
|
74
|
+
# | item4 | | |
|
75
|
+
# | item5 | | |
|
76
|
+
# | item6 | | |
|
77
|
+
# |------------------------|---------------------------------------------------|-------------|
|
14
78
|
def create_credit_card_customer_code(message, locals={})
|
15
79
|
call(:create_credit_card_customer_code, { message: message }.merge(locals))
|
16
80
|
end
|
@@ -1,3 +1,12 @@
|
|
1
|
+
# ProcessLink
|
2
|
+
#
|
3
|
+
# ProcessLink are our services for processing either credit card or ACH/EFT
|
4
|
+
# (direct debit) transactions. You can either transact using clear text or
|
5
|
+
# using the token created using CustomerLink.
|
6
|
+
#
|
7
|
+
# Refunds and large batch transactions can also be managed through the
|
8
|
+
# ProcessLink API.
|
9
|
+
|
1
10
|
# To see the available required/available request parameters for each method, see:
|
2
11
|
# http://home.iatspayments.com/developer-info/underlying-soap-api
|
3
12
|
#
|
@@ -1,3 +1,9 @@
|
|
1
|
+
# ReportLink
|
2
|
+
#
|
3
|
+
# ReportLink allows you to extract all transactions from the iATS database and
|
4
|
+
# import into yours for reporting etc. Reports include Credit Card and ACH/EFT
|
5
|
+
# (direct debit) for approved, failed or refunded transactions.
|
6
|
+
|
1
7
|
# To see the available required/available request parameters for each method, see:
|
2
8
|
# http://home.iatspayments.com/developer-info/underlying-soap-api
|
3
9
|
#
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Glen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|