From e426c95f9e052cb05770ee7f82c6fa7fae1e4942 Mon Sep 17 00:00:00 2001 From: Gitanjli <96485413+gitanjli525@users.noreply.github.com> Date: Wed, 10 Jul 2024 10:51:27 +0530 Subject: [PATCH] chore: added razorpay in payment connectors (#951) --- public/hyperswitch/Gateway/RAZORPAY.svg | 5 +++++ src/screens/Connectors/ConnectorTypes.res | 1 + src/screens/Connectors/ConnectorUtils.res | 9 +++++++++ 3 files changed, 15 insertions(+) create mode 100644 public/hyperswitch/Gateway/RAZORPAY.svg diff --git a/public/hyperswitch/Gateway/RAZORPAY.svg b/public/hyperswitch/Gateway/RAZORPAY.svg new file mode 100644 index 000000000..1564aa1ba --- /dev/null +++ b/public/hyperswitch/Gateway/RAZORPAY.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/screens/Connectors/ConnectorTypes.res b/src/screens/Connectors/ConnectorTypes.res index b7023d332..fbed73b8e 100644 --- a/src/screens/Connectors/ConnectorTypes.res +++ b/src/screens/Connectors/ConnectorTypes.res @@ -84,6 +84,7 @@ type processorTypes = | PLACETOPAY | ZSL | MIFINITY + | RAZORPAY type threeDsAuthenticatorTypes = THREEDSECUREIO | NETCETERA diff --git a/src/screens/Connectors/ConnectorUtils.res b/src/screens/Connectors/ConnectorUtils.res index 0550d70f5..25739ec66 100644 --- a/src/screens/Connectors/ConnectorUtils.res +++ b/src/screens/Connectors/ConnectorUtils.res @@ -83,6 +83,7 @@ let connectorList: array = [ Processors(ZEN), Processors(ZSL), Processors(PLACETOPAY), + Processors(RAZORPAY), ] let connectorListForLive: array = [ @@ -422,6 +423,10 @@ let zslInfo = { description: "It is a payment processor that enables businesses to accept payments securely through local bank transfers.", } +let razorpayInfo = { + description: "Razorpay helps you accept online payments from customers across Desktop, Mobile web, Android & iOS. Additionally by using Razorpay Payment Links, you can collect payments across multiple channels like SMS, Email, Whatsapp, Chatbots & Messenger.", +} + let signifydInfo = { description: "One platform to protect the entire shopper journey end-to-end", validate: [ @@ -514,6 +519,7 @@ let getConnectorNameString = (connector: processorTypes) => | BILLWERK => "billwerk" | MIFINITY => "mifinity" | ZSL => "zsl" + | RAZORPAY => "razorpay" } let getThreeDsAuthenticatorNameString = (threeDsAuthenticator: threeDsAuthenticatorTypes) => @@ -600,6 +606,7 @@ let getConnectorNameTypeFromString = (connector, ~connectorType=ConnectorTypes.P | "billwerk" => Processors(BILLWERK) | "mifinity" => Processors(MIFINITY) | "zsl" => Processors(ZSL) + | "razorpay" => Processors(RAZORPAY) | _ => UnknownConnector("Not known") } | ThreeDsAuthenticator => @@ -677,6 +684,7 @@ let getProcessorInfo = connector => { | BILLWERK => billwerkInfo | MIFINITY => mifinityInfo | ZSL => zslInfo + | RAZORPAY => razorpayInfo } } let getThreedsAuthenticatorInfo = threeDsAuthenticator => @@ -1443,6 +1451,7 @@ let getDisplayNameForProcessor = connector => | PLACETOPAY => "Placetopay" | MIFINITY => "MiFinity" | ZSL => "ZSL" + | RAZORPAY => "Razorpay" } let getDisplayNameForThreedsAuthenticator = threeDsAuthenticator =>