Skip to content

Commit

Permalink
feat: New connector addition Helcim (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored Dec 8, 2023
1 parent eebc924 commit 0e59c4a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,10 @@ echo
commit_regex="^(Merge branch|(feat|fix|chore|refactor|docs|test|style|enhancement):).+"


if git log --show-signature -n 1 | grep -q 'gpg:'; then
if ! echo "$commit_msg" | grep -Ei "$commit_regex" ; then
echo "Aborting commit. Your commit message does not follow the conventional format."
echo "The commit message should begin with one of the following keywords followed by a colon: 'feat', 'fix', 'chore', 'refactor', 'docs', 'test' or 'style'. For example, it should be formatted like this: 'feat: <subject> - <description>'"
exit 1
fi
else
echo "~~~~**** Error: Commit Signature Missing. ****~~~~"
echo "Please make sure to sign your commits. You can sign your commit by using the '-S' option with 'git commit'."
echo "Example: git commit -S -m 'Your commit message'"
echo "Signing commits is crucial for verifying contributions. Consult GitHub's documentation on commit signature verification for guidance: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits"

if ! echo "$commit_msg" | grep -Ei "$commit_regex" ; then
echo "Aborting commit. Your commit message does not follow the conventional format."
echo "The commit message should begin with one of the following keywords followed by a colon: 'feat', 'fix', 'chore', 'refactor', 'docs', 'test' or 'style'. For example, it should be formatted like this: 'feat: <subject> - <description>'"
exit 1
fi

Expand Down
22 changes: 22 additions & 0 deletions public/hyperswitch/Gateway/HELCIM.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/screens/HyperSwitch/Connectors/ConnectorTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type connectorName =
| GOCARDLESS
| VOLT
| PROPHETPAY
| HELCIM
| UnknownConnector(string)

type paymentMethod =
Expand Down
8 changes: 8 additions & 0 deletions src/screens/HyperSwitch/Connectors/ConnectorUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ let connectorList: array<connectorName> = [
GLOBALPAY,
GLOBEPAY,
GOCARDLESS,
HELCIM,
IATAPAY,
KLARNA,
MOLLIE,
Expand Down Expand Up @@ -457,6 +458,10 @@ let prophetpayInfo = {
description: "A secure, affordable, and easy-to-use credit card processing platform for any business.",
}

let helcimInfo = {
description: "Helcim is the easy and affordable solution for small businesses accepting credit card payments.",
}

let unknownConnectorInfo = {
description: "unkown connector",
}
Expand Down Expand Up @@ -517,6 +522,7 @@ let getConnectorNameString = connector => {
| VOLT => "volt"
| PROPHETPAY => "prophetpay"
| BANKOFAMERICA => "bankofamerica"
| HELCIM => "helcim"
| UnknownConnector(str) => str
}
}
Expand Down Expand Up @@ -573,6 +579,7 @@ let getConnectorNameTypeFromString = connector => {
| "volt" => VOLT
| "bankofamerica" => BANKOFAMERICA
| "prophetpay" => PROPHETPAY
| "helcim" => HELCIM
| _ => UnknownConnector("Not known")
}
}
Expand Down Expand Up @@ -629,6 +636,7 @@ let getConnectorInfo = (connector: connectorName) => {
| VOLT => voltInfo
| PROPHETPAY => prophetpayInfo
| BANKOFAMERICA => bankOfAmericaInfo
| HELCIM => helcimInfo
| UnknownConnector(_) => unknownConnectorInfo
}
}
Expand Down

0 comments on commit 0e59c4a

Please sign in to comment.