Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ paymentProcessors = ["adyen","authorizedotnet","archipel","airwallex","bankofame
threedsAuthProcessors = ["netcetera","juspaythreedsserver","ctp_visa"]
payoutProcessors = ["adyen","adyenplatform","cybersource","ebanx","paypal","stripe","wise","nomupay","nuvei","gigadat","loonio","worldpay","worldpayxml"]
vaultProcessors = ["vgs"]
frmProcessors = ["signifyd","riskified","cybersourcedecisionmanager"]

[default.merchant_config]
[default.merchant_config.allowlist]
Expand Down
1 change: 1 addition & 0 deletions src/entryPoints/ConnectorListForLiveFromConfigTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ type connectorListForLive = {
payoutProcessorsLiveList: array<ConnectorTypes.connectorTypes>,
threeDsAuthenticatorProcessorsLiveList: array<ConnectorTypes.connectorTypes>,
vaultProcessorsLiveList: array<ConnectorTypes.connectorTypes>,
frmProcessorsLiveList: array<ConnectorTypes.connectorTypes>,
}
9 changes: 9 additions & 0 deletions src/entryPoints/ConnectorListForLiveFromConfigUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ let getConnectorListForLive = (
~connectorType=VaultProcessor,
)

let frmProcessorListForLiveFromConfig = extractTypedConnectorValueFromConfig(
~connectorDict,
~key="frmProcessors",
~connectorType=FRMPlayer,
)

{
paymentProcessorsLiveList: paymentsProcessorListForLiveFromConfig->Array.length > 0
? paymentsProcessorListForLiveFromConfig
Expand All @@ -61,5 +67,8 @@ let getConnectorListForLive = (
vaultProcessorsLiveList: vaultProcessorListForLiveFromConfig->Array.length > 0
? vaultProcessorListForLiveFromConfig
: vaultProcessorList,
frmProcessorsLiveList: frmProcessorListForLiveFromConfig->Array.length > 0
? frmProcessorListForLiveFromConfig
: frmConnectorListForLive,
}
}
6 changes: 6 additions & 0 deletions src/screens/Connectors/ConnectorUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ let billingProcessorList: array<connectorTypes> = [BillingProcessor(CHARGEBEE)]

let vaultProcessorList: array<connectorTypes> = [VaultProcessor(VGS)]

let frmConnectorListForLive: array<connectorTypes> = [
FRM(CybersourceDecisionManager),
Comment thread
muditbhutani marked this conversation as resolved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should cybersourcedecisionmanager be added to prod? It was just added for a demo.

FRM(Signifyd),
Comment thread
muditbhutani marked this conversation as resolved.
FRM(Riskifyed),
]

let surchargeProcessorList: array<connectorTypes> = [SurchargeProcessor(INTERPAYMENTS)]

let connectorList: array<connectorTypes> = [
Expand Down
5 changes: 4 additions & 1 deletion src/screens/Connectors/FraudAndRisk/FRMSelect.res
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ module NewProcessorCards = {
let make = (~configuredFRMs: array<ConnectorTypes.connectorTypes>) => {
let {userHasAccess} = GroupACLHooks.useUserGroupACLHook()
let mixpanelEvent = MixpanelHook.useSendEvent()
let frmAvailableForIntegration = frmList
let featureFlagDetails = HyperswitchAtom.featureFlagAtom->Recoil.useRecoilValueFromAtom
let {frmProcessorsLiveList} =
HyperswitchAtom.connectorListForLiveAtom->Recoil.useRecoilValueFromAtom
let frmAvailableForIntegration = featureFlagDetails.isLiveMode ? frmProcessorsLiveList : frmList

let handleClick = frmName => {
mixpanelEvent(~eventName=`connect_frm_${frmName}`)
Expand Down
Loading