Skip to content

Commit

Permalink
chore: added razorpay in payment connectors (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 authored Jul 10, 2024
1 parent e8d23b7 commit e426c95
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/hyperswitch/Gateway/RAZORPAY.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 @@ -84,6 +84,7 @@ type processorTypes =
| PLACETOPAY
| ZSL
| MIFINITY
| RAZORPAY

type threeDsAuthenticatorTypes = THREEDSECUREIO | NETCETERA

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 @@ -83,6 +83,7 @@ let connectorList: array<connectorTypes> = [
Processors(ZEN),
Processors(ZSL),
Processors(PLACETOPAY),
Processors(RAZORPAY),
]

let connectorListForLive: array<connectorTypes> = [
Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -514,6 +519,7 @@ let getConnectorNameString = (connector: processorTypes) =>
| BILLWERK => "billwerk"
| MIFINITY => "mifinity"
| ZSL => "zsl"
| RAZORPAY => "razorpay"
}

let getThreeDsAuthenticatorNameString = (threeDsAuthenticator: threeDsAuthenticatorTypes) =>
Expand Down Expand Up @@ -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 =>
Expand Down Expand Up @@ -677,6 +684,7 @@ let getProcessorInfo = connector => {
| BILLWERK => billwerkInfo
| MIFINITY => mifinityInfo
| ZSL => zslInfo
| RAZORPAY => razorpayInfo
}
}
let getThreedsAuthenticatorInfo = threeDsAuthenticator =>
Expand Down Expand Up @@ -1443,6 +1451,7 @@ let getDisplayNameForProcessor = connector =>
| PLACETOPAY => "Placetopay"
| MIFINITY => "MiFinity"
| ZSL => "ZSL"
| RAZORPAY => "Razorpay"
}

let getDisplayNameForThreedsAuthenticator = threeDsAuthenticator =>
Expand Down

0 comments on commit e426c95

Please sign in to comment.