Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit e13112e

Browse files
damianlegawiecgitbook-bot
authored andcommitted
GitBook: [master] 3 pages modified
1 parent 9ccbb60 commit e13112e

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

customization/authentication.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ module Spree
8181
end
8282
```
8383

84-
In your `ApplicationController` add those lines:
84+
In your `ApplicationController` add these lines:
8585

8686
```ruby
8787
include Spree::AuthenticationHelpers
8888
include Spree::Core::ControllerHelpers::Auth
89-
include Spree::Core::ControllerHelpers::Common
9089
include Spree::Core::ControllerHelpers::Order
9190
include Spree::Core::ControllerHelpers::Store
9291
include Spree::Core::ControllerHelpers::Currency
@@ -96,8 +95,6 @@ helper 'spree/base'
9695
helper 'spree/locale', 'spree/currency', 'spree/store'
9796
```
9897

99-
Please note that including `Spree::Core::ControllerHelpers::Common` will replace your application layout with [Spree layout](https://github.com/spree/spree/blob/master/frontend/app/views/spree/layouts/spree_application.html.erb). For applications not wanting to use Spree layout omit the `Spree::Core::ControllerHelpers::Common` module.
100-
10198
Each of the methods defined in this module return values that are the most common in Rails applications today, but you may need to customize them. In order, they are:
10299

103100
* `spree_current_user` Used to tell Spree what the current user
@@ -172,7 +169,7 @@ Finally, if you are using the API component of Spree, there are more methods add
172169

173170
This is only applicable for Spree 4.0 and older. Spree 4.1 and newer releases handle this out of the box.
174171

175-
To make the login link appear on Spree pages, you will need to modify `spree/shared/_nav_bar.html.erb` file which you can copy over from Spree codebase to your project \(detailed in [View Customization section](/developer/customization/view.html)\).
172+
To make the login link appear on Spree pages, you will need to modify `spree/shared/_nav_bar.html.erb` file which you can copy over from Spree codebase to your project \(detailed in [Storefront Customization section](storefront.md)\).
176173

177174
You will need to add this code:
178175

customization/checkout.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def check_registration
4545
end
4646
```
4747

48-
The configuration of the guest checkout option is done via [Preferences](/developer/internals/preferences.html). Spree will allow guest checkout by default. Use the `allow_guest_checkout` preference to change the default setting.
48+
The configuration of the guest checkout option is done via [Preferences](../internals/preferences.md). Spree will allow guest checkout by default. Use the `allow_guest_checkout` preference to change the default setting.
4949

5050
### Address Information
5151

@@ -75,7 +75,7 @@ If you do not want to use a gateway with payment profiles then you will need to
7575

7676
Spree discards the credit card number after this step is processed. If you do not have a gateway with payment profiles enabled then your card information will be lost before it's time to authorize the card.
7777

78-
For more information about payments, please see the [Payments guide](/developer/internals/payments.html).
78+
For more information about payments, please see the [Payments guide](../internals/payments.md).
7979

8080
### Confirmation
8181

@@ -249,7 +249,7 @@ en:
249249

250250
## Payment Profiles
251251

252-
The default checkout process in Spree assumes a gateway that allows for some form of third party support for payment profiles. An example of such a service would be [Authorize.net CIM](https://www.authorize.net/our-features/secure-customer-data.html) Such a service allows for a secure and PCI compliant means of storing the users credit card information. This allows merchants to issue refunds to the credit card or to make changes to an existing order without having to leave Spree and use the gateway provider's website. More importantly, it allows us to have a final "confirmation" step before the order is processed since the number is stored securely on the payment step and can still be used to perform the standard authorization/capture via the secure token provided by the gateway.
252+
The default checkout process in Spree assumes a gateway that allows for some form of third-party support for payment profiles. An example of such a service would be [Authorize.net CIM](https://www.authorize.net/our-features/secure-customer-data.html) Such a service allows for a secure and PCI-compliant means of storing the user's credit card information. This allows merchants to issue refunds to the credit card or to make changes to an existing order without having to leave Spree and use the gateway provider's website. More importantly, it allows us to have a final "confirmation" step before the order is processed since the number is stored securely on the payment step and can still be used to perform the standard authorization/capture via the secure token provided by the gateway.
253253

254254
Spree provides a wrapper around the standard active merchant API in order to provide a common abstraction for dealing with payment profiles. All `Gateway` classes now have a `payment_profiles_supported?` method which indicates whether or not payment profiles are supported. If you are adding Spree support to a `Gateway` you should also implement the `create_profile` method. The following is an example of the implementation of `create_profile` used in the `AuthorizeNetCim` class:
255255

customization/logic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ end
123123

124124
## Replacing Models or Controllers
125125

126-
If your customizations are so large that you overwrite majority of a given Model or Controller we recommend to drop the `_decorator` pattern and overwrite the Model or Controller completely in your project. This will make future Spree upgrades easier.
126+
If your customizations are so large that you overwrite the majority of a given Model or Controller we recommend to drop the `_decorator` pattern and overwrite the Model or Controller completely in your project. This will make future Spree upgrades easier.
127127

0 commit comments

Comments
 (0)