README.md in cardflex-ruby-0.1.1 vs README.md in cardflex-ruby-0.1.2
- old
+ new
@@ -44,10 +44,12 @@
else
@error_message = step_one.result_text
end
```
+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.
+
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:
```ruby
token_id = params['token_id']
@@ -91,10 +93,12 @@
:redirect_url => "https://example.com",
:amount => 5.00
})
```
+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.
+
## Other Features
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:
```
@@ -108,9 +112,11 @@
CustomerVault#delete_billing
Transaction#void
Transaction#capture
Transaction#refund
```
+
+When these methods return, you can find the response inside of the #plan, #subscription, #customer_vault, and #transaction attributes, respectively.
## More Information
You can find all the Cardflex documentation here: https://secure.cardflexonline.com/gw/merchants/resources/integration/integration_portal.php