From d5238fbabc928e2241fd5ecf0c92b98ffa347512 Mon Sep 17 00:00:00 2001
From: Gitanjli <96485413+gitanjli525@users.noreply.github.com>
Date: Wed, 6 Mar 2024 19:51:53 +0530
Subject: [PATCH] feat: added new connector (#480)
Co-authored-by: Pritish Budhiraja <1805317@kiit.ac.in>
---
public/hyperswitch/Gateway/PLACETOPAY.svg | 11 +++++++++++
src/screens/Connectors/ConnectorTypes.res | 1 +
src/screens/Connectors/ConnectorUtils.res | 9 +++++++++
3 files changed, 21 insertions(+)
create mode 100644 public/hyperswitch/Gateway/PLACETOPAY.svg
diff --git a/public/hyperswitch/Gateway/PLACETOPAY.svg b/public/hyperswitch/Gateway/PLACETOPAY.svg
new file mode 100644
index 000000000..0108a48b1
--- /dev/null
+++ b/public/hyperswitch/Gateway/PLACETOPAY.svg
@@ -0,0 +1,11 @@
+
diff --git a/src/screens/Connectors/ConnectorTypes.res b/src/screens/Connectors/ConnectorTypes.res
index ae9000a43..3445d56a3 100644
--- a/src/screens/Connectors/ConnectorTypes.res
+++ b/src/screens/Connectors/ConnectorTypes.res
@@ -77,6 +77,7 @@ type processorTypes =
| VOLT
| PROPHETPAY
| HELCIM
+ | PLACETOPAY
type threeDsAuthenticatorTypes = THREEDSECUREIO
diff --git a/src/screens/Connectors/ConnectorUtils.res b/src/screens/Connectors/ConnectorUtils.res
index e3df65c48..e49a1864c 100644
--- a/src/screens/Connectors/ConnectorUtils.res
+++ b/src/screens/Connectors/ConnectorUtils.res
@@ -66,6 +66,7 @@ let connectorList: array = [
Processors(WORLDLINE),
Processors(WORLDPAY),
Processors(ZEN),
+ Processors(PLACETOPAY),
]
let connectorListForLive: array = [
@@ -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"
@@ -413,6 +418,7 @@ let getConnectorNameString = (connector: processorTypes) =>
| PROPHETPAY => "prophetpay"
| BANKOFAMERICA => "bankofamerica"
| HELCIM => "helcim"
+ | PLACETOPAY => "placetopay"
}
let getThreeDsAuthenticatorNameString = (threeDsAuthenticator: threeDsAuthenticatorTypes) =>
@@ -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 =>
@@ -548,6 +555,7 @@ let getProcessorInfo = connector => {
| PROPHETPAY => prophetpayInfo
| BANKOFAMERICA => bankOfAmericaInfo
| HELCIM => helcimInfo
+ | PLACETOPAY => placetopay
}
}
let getThreedsAuthenticatorInfo = threeDsAuthenticator =>
@@ -1289,6 +1297,7 @@ let getDisplayNameForConnector = connector =>
| PROPHETPAY => "Prophet Pay"
| BANKOFAMERICA => "Bank of America"
| HELCIM => "Helcim"
+ | PLACETOPAY => "Placetopay"
}
let getDisplayNameForThreedsAuthenticator = threeDsAuthenticator =>