cardflex-ruby 0.1.1 → 0.1.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 +6 -0
- data/lib/cardflex/transaction.rb +1 -0
- data/lib/cardflex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1703cf18b8fbab002a9aea1ba320952141c202b3
|
4
|
+
data.tar.gz: ca7ec5d5b18ba1338774f104425ecdf5217387dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a123465c9a5cab94c6c43e604540ec0b06913723bfa9c4b3b6298bfed291055ff9e9c07acbf4cb47f8b79cf7fcdc0fabb130c454510e86d53fae4a5afe0ed7a0
|
7
|
+
data.tar.gz: 3982f7f17ee014d162e0e5135c7f5e1d7181316848c50d8d6086907474e3bd53e3b004cbaa5491d80b159c48734f38b039cbc6d8be8d22b53907138f5d433a2b
|
data/README.md
CHANGED
@@ -46,6 +46,8 @@ else
|
|
46
46
|
end
|
47
47
|
```
|
48
48
|
|
49
|
+
When you complete step one in the three step API, you will receive the returned data in the #three_step attribute if the request succeeded.
|
50
|
+
|
49
51
|
During step 2, you will present to your users a form that will POST to Cardflex using the form_url you received from Cardflex in step 1. Then, the user will be redirected to the :redirect_url supplied in the initial request, with a token_id that you send back to Cardflex to complete the transaction in the query string:
|
50
52
|
|
51
53
|
```ruby
|
@@ -93,6 +95,8 @@ Cardflex::ThreeStep.get_form_url(:sale => {
|
|
93
95
|
})
|
94
96
|
```
|
95
97
|
|
98
|
+
When a three step response completes step 3, it will return all the data to you inside of the #transaction attribute, as all three step actions are transactional in nature.
|
99
|
+
|
96
100
|
## Other Features
|
97
101
|
|
98
102
|
In addition to supporting the Three Step API, you can also perform a few other actions that do not involve sensitive information, and so you are freed from having to use the Three Step process:
|
@@ -111,6 +115,8 @@ Transaction#capture
|
|
111
115
|
Transaction#refund
|
112
116
|
```
|
113
117
|
|
118
|
+
When these methods return, you can find the response inside of the #plan, #subscription, #customer_vault, and #transaction attributes, respectively.
|
119
|
+
|
114
120
|
## More Information
|
115
121
|
|
116
122
|
You can find all the Cardflex documentation here: https://secure.cardflexonline.com/gw/merchants/resources/integration/integration_portal.php
|
data/lib/cardflex/transaction.rb
CHANGED
@@ -19,6 +19,7 @@ module Cardflex
|
|
19
19
|
attr_reader :descriptor, :descriptor_phone, :descriptor_address, :descriptor_city, :descriptor_state,
|
20
20
|
:descriptor_postal, :descriptor_country, :descriptor_mcc, :descriptor_merchant_id, :descriptor_url
|
21
21
|
attr_reader :order_description, :order_date
|
22
|
+
attr_reader :subscription_id
|
22
23
|
attr_reader :customer_id, :customer_vault_id
|
23
24
|
attr_reader :merchant_receipt_email
|
24
25
|
attr_reader :customer_receipt
|
data/lib/cardflex/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cardflex-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom King
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|