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
e331edad
Commit
e331edad
authored
5 years ago
by
Ramakrishnan Muthukrishnan
Browse files
Options
Downloads
Patches
Plain Diff
fix hlint-reported warnings
parent
9eaac7f8
No related branches found
Branches containing commit
No related tags found
1 merge request
!32
Pass paths to secrets in commandline arguments instead of secrets
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/PaymentServer/Main.hs
+1
-1
1 addition, 1 deletion
src/PaymentServer/Main.hs
src/PaymentServer/Processors/Stripe.hs
+1
-1
1 addition, 1 deletion
src/PaymentServer/Processors/Stripe.hs
src/PaymentServer/Server.hs
+0
-1
0 additions, 1 deletion
src/PaymentServer/Server.hs
with
2 additions
and
3 deletions
src/PaymentServer/Main.hs
+
1
−
1
View file @
e331edad
...
...
@@ -204,7 +204,7 @@ logEndpoint endpoint =
getApp
::
ServerConfig
->
IO
Application
getApp
config
=
let
getIssuer
ServerConfig
{
issuer
,
signingKeyPath
}
=
do
getIssuer
ServerConfig
{
issuer
,
signingKeyPath
}
=
case
(
issuer
,
signingKeyPath
)
of
(
Trivial
,
Nothing
)
->
return
$
Right
trivialIssue
(
Ristretto
,
Just
keyPath
)
->
do
...
...
This diff is collapsed.
Click to expand it.
src/PaymentServer/Processors/Stripe.hs
+
1
−
1
View file @
e331edad
...
...
@@ -174,7 +174,7 @@ charge d key (Charges token voucher amount currency) = do
Left
StripeError
{}
->
throwError
err400
{
errBody
=
"Stripe charge didn't succeed"
}
where
getCurrency
::
Text
->
Handler
Currency
getCurrency
maybeCurrency
=
do
getCurrency
maybeCurrency
=
case
readMaybe
(
unpack
currency
)
of
Just
currency'
->
return
currency'
Nothing
->
throwError
err400
{
errBody
=
"Invalid currency specified"
}
This diff is collapsed.
Click to expand it.
src/PaymentServer/Server.hs
+
0
−
1
View file @
e331edad
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
-- | This module exposes a Servant-based Network.Wai server for payment
-- interactions.
...
...
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