cardconnect 1.1.0 → 1.1.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00a602e19439f3a2fa524532c7e888310b1234e2
|
4
|
+
data.tar.gz: f97ac47853a4329fd89f84ffc1dd66ecc4d2b445
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2960e9637fa8a377a0081427ca4c9076e1aa8e09fd4d5c05a3decb8e09124a2020a5257a1d78fab74d299cdba3c24623b4ede9ed93bafc0f1ee811d217113ae
|
7
|
+
data.tar.gz: 64c6df08c25c5b48e16fc3f9fefd9cfe7ea8e6d16ccaf8559928e2e45139c7743574e2eb945eb1a51832ab0d4934e216ff67bb8b1dd778f9430df77f2e2ec8a9
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# CardConnect
|
2
2
|
|
3
|
-
CardConnect API Ruby
|
3
|
+
CardConnect API Ruby Client
|
4
4
|
|
5
5
|
[](http://badge.fury.io/rb/cardconnect)
|
6
6
|
[](https://codeclimate.com/github/mobilecause/cardconnect)
|
data/cardconnect.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = CardConnect::VERSION
|
9
9
|
spec.authors = ['Tim McKenzie', 'Prashant Mokkarala', 'Jason Taylor']
|
10
10
|
spec.email = ['tim@mobilecause.com', 'prashant@mobilecause.com', 'j.m.taylor1@gmail.com']
|
11
|
-
spec.summary = 'CardConnect API Ruby
|
12
|
-
spec.description = 'CardConnect API Ruby
|
11
|
+
spec.summary = 'CardConnect API Ruby Client'
|
12
|
+
spec.description = 'CardConnect API Ruby Client'
|
13
13
|
spec.homepage = 'http://developer.cardconnect.com/'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
@@ -5,6 +5,14 @@ module CardConnect
|
|
5
5
|
|
6
6
|
FIELDS = [:merchid, :account, :amount, :retref, :setlstat].freeze
|
7
7
|
|
8
|
+
# Settlement Statuses
|
9
|
+
TXN_NOT_FOUND = 'Txn not found' # The Retref was not found
|
10
|
+
AUTHORIZED = 'Authorized' # Auth only, not captured
|
11
|
+
QUEUED = 'Queued for Capture' # Queued for the Processor
|
12
|
+
ZERO_AMOUNT = 'Zero Amount' # Capture (and Auth) were Voided
|
13
|
+
ACCEPTED = 'Accepted' # Accepted by the Processor
|
14
|
+
REJECTED = 'Rejected' # Rejected by the Processor
|
15
|
+
|
8
16
|
attr_accessor(*FIELDS)
|
9
17
|
|
10
18
|
def initialize(response)
|
@@ -5,6 +5,15 @@ module CardConnect
|
|
5
5
|
|
6
6
|
FIELDS = [:merchid, :account, :amount, :currency, :retref, :respcode,
|
7
7
|
:respproc, :respstat, :resptext, :setlstat].freeze
|
8
|
+
|
9
|
+
# Settlement Status
|
10
|
+
AUTHORIZED = 'Authorized' # Txn has not been Captured
|
11
|
+
QUEUED = 'Queued for Capture' # Txn is in flight to Clearing House
|
12
|
+
ACCEPTED = 'Accepted' # Txn was accepted for Settlement
|
13
|
+
REJECTED = 'Rejected' # Txn was not accepted
|
14
|
+
ZERO_AMOUNT = 'Zero Amount' # Txn was $0
|
15
|
+
VOIDED = 'Voided' # Txn has been voided
|
16
|
+
DECLINED = 'Declined' # Txn had an error
|
8
17
|
|
9
18
|
attr_accessor(*FIELDS)
|
10
19
|
attr_reader :errors
|
data/lib/cardconnect/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cardconnect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim McKenzie
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 0.9.1
|
57
|
-
description: CardConnect API Ruby
|
57
|
+
description: CardConnect API Ruby Client
|
58
58
|
email:
|
59
59
|
- tim@mobilecause.com
|
60
60
|
- prashant@mobilecause.com
|
@@ -150,7 +150,7 @@ rubyforge_project:
|
|
150
150
|
rubygems_version: 2.5.1
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
|
-
summary: CardConnect API Ruby
|
153
|
+
summary: CardConnect API Ruby Client
|
154
154
|
test_files:
|
155
155
|
- test/api_request_stubs.rb
|
156
156
|
- test/api_response_stubs.rb
|