Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PaymentServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
PaymentServer
Commits
cd937b64
Commit
cd937b64
authored
5 years ago
by
Ramakrishnan Muthukrishnan
Browse files
Options
Downloads
Patches
Plain Diff
define StripeSecretKey in one place and use it elsewhere
parent
2bd04131
No related branches found
Branches containing commit
No related tags found
1 merge request
!30
Expose a browser facing API for charge
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/PaymentServer/Main.hs
+4
-4
4 additions, 4 deletions
src/PaymentServer/Main.hs
src/PaymentServer/Processors/Stripe.hs
+1
-0
1 addition, 0 deletions
src/PaymentServer/Processors/Stripe.hs
with
5 additions
and
4 deletions
src/PaymentServer/Main.hs
+
4
−
4
View file @
cd937b64
...
...
@@ -12,9 +12,6 @@ import Text.Printf
import
Data.Maybe
(
maybeToList
)
import
Data.ByteString
(
ByteString
)
import
Data.Text
(
Text
)
...
...
@@ -50,6 +47,9 @@ import PaymentServer.Issuer
import
PaymentServer.Server
(
paymentServerApp
)
import
PaymentServer.Processors.Stripe
(
StripeSecretKey
)
import
Options.Applicative
(
Parser
...
...
@@ -93,7 +93,7 @@ data ServerConfig = ServerConfig
,
database
::
Database
,
databasePath
::
Maybe
Text
,
endpoint
::
Endpoint
,
stripeKey
::
ByteString
,
stripeKey
::
StripeSecretKey
}
deriving
(
Show
,
Eq
)
...
...
This diff is collapsed.
Click to expand it.
src/PaymentServer/Processors/Stripe.hs
+
1
−
0
View file @
cd937b64
...
...
@@ -6,6 +6,7 @@ module PaymentServer.Processors.Stripe
(
StripeAPI
,
stripeServer
,
getVoucher
,
StripeSecretKey
)
where
import
Control.Monad.IO.Class
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment