Skip to content

Commit

Permalink
feat: added new connector (#480)
Browse files Browse the repository at this point in the history
Co-authored-by: Pritish Budhiraja <[email protected]>
  • Loading branch information
gitanjli525 and Pritish Budhiraja authored Mar 6, 2024
1 parent a6668b7 commit d5238fb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions public/hyperswitch/Gateway/PLACETOPAY.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/Connectors/ConnectorTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type processorTypes =
| VOLT
| PROPHETPAY
| HELCIM
| PLACETOPAY

type threeDsAuthenticatorTypes = THREEDSECUREIO

Expand Down
9 changes: 9 additions & 0 deletions src/screens/Connectors/ConnectorUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ let connectorList: array<connectorTypes> = [
Processors(WORLDLINE),
Processors(WORLDPAY),
Processors(ZEN),
Processors(PLACETOPAY),
]

let connectorListForLive: array<connectorTypes> = [
Expand Down Expand Up @@ -360,6 +361,10 @@ let bankOfAmericaInfo = {
description: "A top financial firm offering banking, investing, and risk solutions to individuals and businesses.",
}

let placetopay = {
description: "Reliable payment processor facilitating secure transactions online for businesses, ensuring seamless transactions.",
}

let getConnectorNameString = (connector: processorTypes) =>
switch connector {
| ADYEN => "adyen"
Expand Down Expand Up @@ -413,6 +418,7 @@ let getConnectorNameString = (connector: processorTypes) =>
| PROPHETPAY => "prophetpay"
| BANKOFAMERICA => "bankofamerica"
| HELCIM => "helcim"
| PLACETOPAY => "placetopay"
}

let getThreeDsAuthenticatorNameString = (threeDsAuthenticator: threeDsAuthenticatorTypes) =>
Expand Down Expand Up @@ -484,6 +490,7 @@ let getConnectorNameTypeFromString = (connector, ~connectorType=ConnectorTypes.C
| "bankofamerica" => Processors(BANKOFAMERICA)
| "prophetpay" => Processors(PROPHETPAY)
| "helcim" => Processors(HELCIM)
| "placetopay" => Processors(PLACETOPAY)
| _ => UnknownConnector("Not known")
}
| ThreeDsAuthenticator =>
Expand Down Expand Up @@ -548,6 +555,7 @@ let getProcessorInfo = connector => {
| PROPHETPAY => prophetpayInfo
| BANKOFAMERICA => bankOfAmericaInfo
| HELCIM => helcimInfo
| PLACETOPAY => placetopay
}
}
let getThreedsAuthenticatorInfo = threeDsAuthenticator =>
Expand Down Expand Up @@ -1289,6 +1297,7 @@ let getDisplayNameForConnector = connector =>
| PROPHETPAY => "Prophet Pay"
| BANKOFAMERICA => "Bank of America"
| HELCIM => "Helcim"
| PLACETOPAY => "Placetopay"
}

let getDisplayNameForThreedsAuthenticator = threeDsAuthenticator =>
Expand Down

0 comments on commit d5238fb

Please sign in to comment.