This repository was archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<div class="container"> | ||
<h1><%= @cart[:cart_name] %></h1> | ||
<h1><%= h @cart[:cart_name] %></h1> | ||
</div> | ||
|
||
<div class="container"> | ||
<% if @gateway %> | ||
|
||
<p class="lead">Great! You have configurated a Gateway.</p> | ||
<p>Your Gateway token is <em>'<%= @gateway[:gateway_token] %>'</em>. You can see how it was retained using the secure API by looking at <a href="https://github.com/spreedly/sample-foodcarts/blob/master/web.rb">the application code</a>.</p> | ||
<p>Your Gateway token is <em>'<%= h @gateway[:gateway_token] %>'</em>. You can see how it was retained using the secure API by looking at <a href="https://github.com/spreedly/sample-foodcarts/blob/master/web.rb">the application code</a>.</p> | ||
<p>Now imagine having thousands of customers, each one using a different Gateway. You are able to store credit cards and other payment methods in Spreedly's vault for all of them. If they decide to move to another Gateway, you can tell them, "No problemo! We're using Spreedly!"<p> | ||
<p>spreedly.js has been designed to simplify your integration with Spreedly. Thanks for exploring, and <a href="mailto:[email protected]?subject=Food%20Carts%20Sample%20-%20spreedly.js">please let us know</a> if you have any trouble.</p> | ||
|
||
|
@@ -19,7 +19,7 @@ | |
data-theme="default" | ||
data-types="test"> | ||
<input type="hidden" name="authenticity_token" value="<%= env['rack.session'][:csrf] %>" /> | ||
<input type="hidden" name="cart_name" value="<%= @cart[:cart_name] %>"></input> | ||
<input type="hidden" name="cart_name" value="<%= hattr @cart[:cart_name] %>"></input> | ||
</form> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters