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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1da29dfbacec65d1aeb178a2aca6f0814f17ebbb
4
- data.tar.gz: 17ac130da88ce00fd6b42e3c9225561b87c8a3ec
3
+ metadata.gz: 1703cf18b8fbab002a9aea1ba320952141c202b3
4
+ data.tar.gz: ca7ec5d5b18ba1338774f104425ecdf5217387dc
5
5
  SHA512:
6
- metadata.gz: 0703d9e0b1500fed41ae0f4f6ea6ce2af0fc08d955bc8541c2ad14b393e98baa1932b25a30d63c559b5411391c6b911c584c659e6dbd7c8e28b9002c1be93cd5
7
- data.tar.gz: 293bd2099846cf4d887c219fc42cc22c39e138d58b75de68341e41d0dacb89316eb298c93115d008c58258830a471d8d5f718eb2d40422ccae7366d92a8c3413
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
@@ -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
@@ -2,7 +2,7 @@ module Cardflex
2
2
  module Version
3
3
  Major = '0'
4
4
  Minor = '1'
5
- Patch = '1'
5
+ Patch = '2'
6
6
 
7
7
  Full = "#{Major}.#{Minor}.#{Patch}"
8
8
  end
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.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: 2014-12-30 00:00:00.000000000 Z
11
+ date: 2015-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder