-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved revised order product error, docs from walkthrough (#606)
* Improve error message for missing revised line item * Stop connectionSuccessful, not used in latest JS code * Documentation from video walkthrough * Adding brian to pr template
- Loading branch information
1 parent
f8491bc
commit 0a333f3
Showing
8 changed files
with
26 additions
and
9 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
### Notify | ||
r? @brennen-stripe | ||
cc @brianw-stripe | ||
cc @arnoldezeolisa | ||
cc @sean-appiphony | ||
--> |
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
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,18 +1,24 @@ | ||
# frozen_string_literal: true | ||
# typed: false | ||
|
||
# defines these POST routes for us: | ||
# - /auth/salesforcesandbox | ||
# - /auth/salesforce | ||
# - /auth/stripe | ||
# | ||
# callbacks are explicitly defined in routes.rb. The GET versions of these | ||
# routes are defined in routes.rb. This is to work out around a oauth security issue. | ||
|
||
Rails.application.config.middleware.use OmniAuth::Builder do | ||
provider :stripe, ENV["STRIPE_CLIENT_ID"], ENV["STRIPE_CLIENT_SECRET"], scope: 'read_write' | ||
|
||
provider :salesforce, ENV.fetch('SF_CONSUMER_KEY'), ENV.fetch('SF_CONSUMER_SECRET') | ||
|
||
# same oauth consumer keys are used for sandbox & prod, but different destination URLs | ||
provider OmniAuth::Strategies::SalesforceSandbox, | ||
ENV['SF_CONSUMER_KEY'], | ||
ENV['SF_CONSUMER_SECRET'] | ||
provider OmniAuth::Strategies::SalesforcePreRelease, | ||
ENV['SF_CONSUMER_KEY'], | ||
ENV['SF_CONSUMER_SECRET'] | ||
end | ||
|
||
# from sinatra | ||
# OmniAuth.config.full_host = ENV.fetch("DOMAIN") |
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
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
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
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
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