Skip to content

Commit

Permalink
feat: enable pm_auth_processor (#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 authored Aug 8, 2024
1 parent 919201a commit 5702f1e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ live_users_counter=false
granularity=false
custom_webhook_headers=false
compliance_certificate=false
pm_authentication_processor=true
8 changes: 8 additions & 0 deletions public/hyperswitch/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ function getAuthenticationConnectorConfig(connectorName) {
}
}

function getPMAuthenticationProcessorConfig(connectorName) {
if (wasm) {
return wasm.getPMAuthenticationProcessorConfig(connectorName);
} else {
return {};
}
}

function getPayoutDescriptionCategory() {
if (wasm) {
return wasm.getPayoutDescriptionCategory();
Expand Down
2 changes: 2 additions & 0 deletions src/entryPoints/FeatureFlagUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type featureFlag = {
granularity: bool,
customWebhookHeaders: bool,
complianceCertificate: bool,
pmAuthenticationProcessor: bool,
}

let featureFlagType = (featureFlags: JSON.t) => {
Expand Down Expand Up @@ -67,6 +68,7 @@ let featureFlagType = (featureFlags: JSON.t) => {
granularity: dict->getBool("granularity", false),
customWebhookHeaders: dict->getBool("custom_webhook_headers", false),
complianceCertificate: dict->getBool("compliance_certificate", false),
pmAuthenticationProcessor: dict->getBool("pm_authentication_processor", false),
}
typedFeatureFlag
}
3 changes: 3 additions & 0 deletions src/libraries/Window.res
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ external isSecureContext: bool = "isSecureContext"
@val @scope("window")
external getAuthenticationConnectorConfig: string => JSON.t = "getAuthenticationConnectorConfig"

@val @scope("window")
external getPMAuthenticationProcessorConfig: string => JSON.t = "getPMAuthenticationProcessorConfig"

@val @scope("window")
external getAllPayoutKeys: unit => array<string> = "getAllPayoutKeys"

Expand Down

0 comments on commit 5702f1e

Please sign in to comment.