text
stringlengths
70
351k
source
stringclasses
4 values
# file: hyperswitch/crates/router/Cargo.toml | crate: router [dev-dependencies] actix-http = "3.6.0" awc = { version = "3.4.0", features = ["rustls"] } derive_deref = "1.1.1" rand = "0.8.5" serial_test = "3.0.0" time = { version = "0.3.35", features = ["macros"] } tokio = "1.37.0" wiremock = "0.6.0" # First party dev-dependencies test_utils = { version = "0.1.0", path = "../test_utils" }
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [square] api_key="API Key" key1 = "transaction key"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [bankofamerica] api_key = "MyApiKey" key1 = "Merchant id" api_secret = "Secret key"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [placetopay] api_key= "Login" key1= "Trankey"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [plaid] api_key="Client Id" key1= "Secret"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [netcetera] certificate="Certificate" private_key="Private Key"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [zsl] api_key= "Key" key1= "Merchant id"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [razorpay] api_key="API Key" key1 = "Merchant id" api_secret = "Razorpay Id" key2 = "Razorpay Secret"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [wellsfargo] api_key = "MyApiKey" key1 = "Merchant id" api_secret = "Secret key"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [wellsfargopayout] api_key = "Consumer Key" key1 = "Gateway Entity Id" api_secret = "Consumer Secret"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [deutschebank] api_key = "Client ID" key1 = "Merchant ID" api_secret = "Client Key"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [jpmorgan] api_key="Client ID" key1 ="Client Secret"
ast_fragments
# file: hyperswitch/crates/router/tests/connectors/sample_auth.toml | crate: router [nomupay] api_key="kid" key1="eid"
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/generic_link/payment_method_collect/initiate/script.js | crate: router function initializeCollectSDK() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/generic_link/payment_method_collect/initiate/script.js | crate: router function boot() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/generic_link/payout_link/status/script.js | crate: router function redirectToEndUrl(returnUrl) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/generic_link/payout_link/status/script.js | crate: router function renderStatusDetails(payoutDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/generic_link/payout_link/initiate/script.js | crate: router function initializePayoutSDK() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/generic_link/payout_link/initiate/script.js | crate: router function formatDate(date) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/locale.js | crate: router function getTranslations(locale_str) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js | crate: router function initializeSDK() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js | crate: router function redirectToStatus() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderCartItem( item, paymentDetails, shouldAddDividerNode, cartItemsNode, ) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderCart(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderDescription(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function appendMerchantDetails(paymentDetails, merchantDynamicDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderPaymentDetails(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function handleSubmit(e) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function hslToRgb(h, s, l) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function rgbToHsl(r, g, b) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function updatePaymentLinkUi(paymentLinkUiRules) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderSDKHeader(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function viewCartInMobileView() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function hideCartInMobileView() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderBackgroundImage(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderBranding(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function createHyperSwitchBrandingSVGElement(wrapperId) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderDefaultLayout(merchantDescription) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function renderDynamicMerchantDetails(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function removeClass(id, className) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function addClass(id, className) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function addText(id, msg) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function showMessage(msg) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function hide(id) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function show(id) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function mountUnifiedCheckout(id) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function showSDK(display_sdk_only, enable_button_only_on_form_ready) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function handleFormReadyForSubmission() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function isObject(val) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function emitPaymentStatus(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function invert(color, bw) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function invertToBW(color, bw, asArr) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function getLuminance(c) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function toRgbArray(c) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function hexToRgbArray(hex) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function padz(str, len) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function rgbToHex(r, g, b) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function adjustLightness(hexColor, factor) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function handleCartView(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_initiate/payment_link.js | crate: router function initializeEventListeners(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_status/status.js | crate: router function createItem(heading, value) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_status/status.js | crate: router function shouldRenderUI(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payment_link/payment_link_status/status.js | crate: router function renderStatusDetails(paymentDetails) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/services/redirection/assets/redirect_error_logs_push.js | crate: router async function postLog(log, urlToPost) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/services/redirection/assets/redirect_error_logs_push.js | crate: router function getEnvRoute(url) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/services/redirection/assets/redirect_error_logs_push.js | crate: router function parseRoute(url) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
# file: hyperswitch/config/dashboard.toml | crate: config [default.features] test_live_toggle=false is_live_mode=false email=false quick_start=false audit_trail=false sample_data=false frm=true payout=true recon=true test_processors=true feedback=false mixpanel=false generate_report=false surcharge=true dispute_evidence_upload=false paypal_automatic_flow=false threeds_authenticator=true global_search=false global_search_filters=false dispute_analytics=false authentication_analytics=false configure_pmts=true branding=false granularity=false compliance_certificate=false pm_authentication_processor=true performance_monitor=false new_analytics=false new_analytics_smart_retries=false new_analytics_refunds=false new_analytics_filters=false down_time=false dev_theme_feature=false tax_processor=true force_cookies=false x_feature_route=false tenant_user=false dev_click_to_pay=true dev_recon_v2_product=false dev_recovery_v2_product=false dev_vault_v2_product=false dev_intelligent_routing_v2=false dev_modularity_v2=false dev_alt_payment_methods=false dev_hypersense_v2_product=false maintainence_alert=""
ast_fragments
# file: hyperswitch/config/dashboard.toml | crate: config [default.theme] primary_color="#006DF9" primary_hover_color="#005ED6" sidebar_primary="#FCFCFD" sidebar_secondary= "#FFFFFF" sidebar_hover_color= "#D9DDE5" sidebar_primary_text_color="#1C6DEA" sidebar_secondary_text_color= "#525866" sidebar_border_color= "#ECEFF3"
ast_fragments
# file: hyperswitch/config/dashboard.toml | crate: config [default.endpoints] api_url="http://localhost:8080" # The backend hyperswitch API server for making payments sdk_url="http://localhost:9050/HyperLoader.js" # SDK distribution url used for loading the SDK in control center hypersense_url="" logo_url="" favicon_url="" agreement_url="" agreement_version="" apple_pay_certificate_url="" mixpanel_token="" recon_iframe_url="" dss_certificate_url=""
ast_fragments
# file: hyperswitch/config/dashboard.toml | crate: config [default.merchant_config.new_analytics] org_ids=[] merchant_ids=[] profile_ids=[]
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [connectors.supported] wallets = ["klarna", "mifinity", "braintree", "applepay"] rewards = ["cashtocode", "zen"] cards = [ "adyen", "adyenplatform", "authorizedotnet", "coinbase", "coingate", "cryptopay", "braintree", "checkout", "cybersource", "datatrans", "deutschebank", "digitalvirgo", "facilitapay", "globalpay", "globepay", "gocardless", "gpayments", "helcim", "hipay", "mollie", "moneris", "paypal", "paystack", "shift4", "square", "stax", "stripe", "stripebilling", "threedsecureio", "thunes", "worldpay", "xendit", "zen", "zsl", ] # Scheduler settings provides a point to modify the behaviour of scheduler flow. # It defines the streams/queues name and configuration as well as event selection variables
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [pm_filters.adyen] sofort = { country = "AT,BE,DE,ES,CH,NL", currency = "CHF,EUR" } paypal = { country = "AU,NZ,CN,JP,HK,MY,TH,KR,PH,ID,AE,KW,BR,ES,GB,SE,NO,SK,AT,NL,DE,HU,CY,LU,CH,BE,FR,DK,FI,RO,HR,UA,MT,SI,GI,PT,IE,CZ,EE,LT,LV,IT,PL,IS,CA,US", currency = "AUD,BRL,CAD,CZK,DKK,EUR,HKD,HUF,INR,JPY,MYR,MXN,NZD,NOK,PHP,PLN,RUB,GBP,SGD,SEK,CHF,THB,USD" } klarna = { country = "AU,AT,BE,CA,CZ,DK,FI,FR,DE,GR,IE,IT,NO,PL,PT,RO,ES,SE,CH,NL,GB,US", currency = "AUD,EUR,CAD,CZK,DKK,NOK,PLN,RON,SEK,CHF,GBP,USD" } ideal = { country = "NL", currency = "EUR" } online_banking_fpx = { country = "MY", currency = "MYR" } online_banking_thailand = { country = "TH", currency = "THB" } touch_n_go = { country = "MY", currency = "MYR" } atome = { country = "MY,SG", currency = "MYR,SGD" } swish = { country = "SE", currency = "SEK" } permata_bank_transfer = { country = "ID", currency = "IDR" } bca_bank_transfer = { country = "ID", currency = "IDR" } bni_va = { country = "ID", currency = "IDR" } bri_va = { country = "ID", currency = "IDR" } cimb_va = { country = "ID", currency = "IDR" } danamon_va = { country = "ID", currency = "IDR" } mandiri_va = { country = "ID", currency = "IDR" } alfamart = { country = "ID", currency = "IDR" } indomaret = { country = "ID", currency = "IDR" } open_banking_uk = { country = "GB", currency = "GBP" } oxxo = { country = "MX", currency = "MXN" } pay_safe_card = { country = "AT,AU,BE,BR,BE,CA,HR,CY,CZ,DK,FI,FR,GE,DE,GI,HU,IS,IE,KW,LV,IE,LI,LT,LU,MT,MX,MD,ME,NL,NZ,NO,PY,PE,PL,PT,RO,SA,RS,SK,SI,ES,SE,CH,TR,AE,GB,US,UY", currency = "EUR,AUD,BRL,CAD,CZK,DKK,GEL,GIP,HUF,KWD,CHF,MXN,MDL,NZD,NOK,PYG,PEN,PLN,RON,SAR,RSD,SEK,TRY,AED,GBP,USD,UYU" } seven_eleven = { country = "JP", currency = "JPY" } lawson = { country = "JP", currency = "JPY" } mini_stop = { country = "JP", currency = "JPY" } family_mart = { country = "JP", currency = "JPY" } seicomart = { country = "JP", currency = "JPY" } pay_easy = { country = "JP", currency = "JPY" } boleto = { country = "BR", currency = "BRL" }
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [server] port = 8080 host = "127.0.0.1" # This is the grace time (in seconds) given to the actix-server to stop the execution # For more details: https://actix.rs/docs/server/#graceful-shutdown shutdown_timeout = 30 # HTTP Request body limit. Defaults to 32kB request_body_limit = 32_768 # HTTPS Server Configuration # Self-signed Private Key and Certificate can be generated with mkcert for local development
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [server.tls] port = 8081 host = "127.0.0.1" private_key = "/path/to/private_key.pem" certificate = "/path/to/certificate.pem" # Proxy server configuration for connecting to payment gateways. # Don't define the fields if a Proxy isn't needed. Empty strings will cause failure.
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [proxy] # http_url = "http proxy url" # Proxy all HTTP traffic via this proxy # https_url = "https proxy url" # Proxy all HTTPS traffic via this proxy idle_pool_connection_timeout = 90 # Timeout for idle pool connections (defaults to 90s) bypass_proxy_hosts = "localhost, cluster.local" # A comma-separated list of domains or IP addresses that should not use the proxy. Whitespace between entries would be ignored. # Configuration for the Key Manager Service
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [key_manager] url = "http://localhost:5000" # URL of the encryption service # Main SQL data store credentials
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [redis] host = "127.0.0.1" port = 6379 pool_size = 5 # Number of connections to keep open reconnect_max_attempts = 5 # Maximum number of reconnection attempts to make before failing. Set to 0 to retry forever. reconnect_delay = 5 # Delay between reconnection attempts, in milliseconds default_ttl = 300 # Default TTL for entries, in seconds default_hash_ttl = 900 # Default TTL for hashes entries, in seconds use_legacy_version = false # Resp protocol for fred crate (set this to true if using RESPv2 or redis version < 6) stream_read_count = 1 # Default number of entries to read from stream if not provided in stream read options auto_pipeline = true # Whether or not the client should automatically pipeline commands across tasks when possible. disable_auto_backpressure = false # Whether or not to disable the automatic backpressure features when pipelining is enabled. max_in_flight_commands = 5000 # The maximum number of in-flight commands (per connection) before backpressure will be applied. default_command_timeout = 30 # An optional timeout to apply to all commands. In seconds unresponsive_timeout = 10 # An optional timeout for Unresponsive commands in seconds. This should be less than default_command_timeout. max_feed_count = 200 # The maximum number of frames that will be fed to a socket before flushing. # This section provides configs for currency conversion api
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [forex_api] api_key = "" # Api key for making request to foreign exchange Api fallback_api_key = "" # Api key for the fallback service redis_ttl_in_seconds = 172800 # Time to expire for forex data stored in Redis data_expiration_delay_in_seconds = 21600 # Expiration time for data in cache as well as redis in seconds redis_lock_timeout_in_seconds = 100 # Redis remains write locked for 100 s once the acquire_redis_lock is called # Logging configuration. Logging can be either to file or console or both. # Logging configuration for file logging
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [log.file] enabled = false # Toggle [true or false] path = "logs" # specify the directory to create log files file_name = "debug.log" # base name for log files. # levels can be "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" # defaults to "WARN" level = "WARN" # sets the log level for one or more crates filtering_directive = "WARN,router=INFO,reqwest=INFO" # ^^^^ ^^^^---------^^^^-- sets the log level for the # | router and reqwest crates to INFO. # | # |______________________________ sets the log level for all # other crates to WARN. # Logging configuration for console logging
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [log.console] enabled = true # boolean [true or false] log_format = "default" # Log format. "default" or "json" # levels can be "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" # defaults to "WARN" level = "DEBUG" # sets the log level for one or more crates filtering_directive = "WARN,router=INFO,reqwest=INFO" # ^^^^ ^^^^---------^^^^-- sets the log level for the # | router and reqwest crates to INFO. # | # |______________________________ sets the log level for all # other crates to WARN. # Telemetry configuration for metrics and traces
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [secrets] master_enc_key = "sample_key" # Master Encryption key used to encrypt merchant wise encryption key. Should be 32-byte long. admin_api_key = "test_admin" # admin API key for admin authentication. jwt_secret = "secret" # JWT secret used for user authentication. # Locker settings contain details for accessing a card locker, a # PCI Compliant storage entity which stores payment method information # like card details
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [locker] host = "" # Locker host host_rs = "" # Rust Locker host mock_locker = true # Emulate a locker locally using Postgres locker_signing_key_id = "1" # Key_id to sign basilisk hs locker locker_enabled = true # Boolean to enable or disable saving cards in locker ttl_for_storage_in_secs = 220752000 # Time to live for storage entries in locker
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [delayed_session_response] connectors_with_delayed_session_response = "trustpay,payme" # List of connectors which has delayed session response
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [webhook_source_verification_call] connectors_with_webhook_source_verification_call = "paypal" # List of connectors which has additional source verification api-call
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [jwekey] # 4 priv/pub key pair vault_encryption_key = "" # public key in pem format, corresponding private key in basilisk-hs rust_locker_encryption_key = "" # public key in pem format, corresponding private key in rust locker vault_private_key = "" # private key in pem format, corresponding public key in basilisk-hs # Refund configuration
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [refund] max_attempts = 10 # Number of refund attempts allowed max_age = 365 # Max age of a refund in days.
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [webhooks] outgoing_enabled = true # Validity of an Ephemeral Key in Hours
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [api_keys] # Hex-encoded 32-byte long (64 characters long when hex-encoded) key used for calculating hashes of API keys hash_key = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" # Connector configuration, provided attributes will be used to fulfill API requests. # Examples provided here are sandbox/test base urls, can be replaced by live or mock # base urls based on your need. # Note: These are not optional attributes. hyperswitch request can fail due to invalid/empty values.
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [pm_filters.default] apple_pay = { country = "AU,CN,HK,JP,MO,MY,NZ,SG,TW,AM,AT,AZ,BY,BE,BG,HR,CY,CZ,DK,EE,FO,FI,FR,GE,DE,GR,GL,GG,HU,IS,IE,IM,IT,KZ,JE,LV,LI,LT,LU,MT,MD,MC,ME,NL,NO,PL,PT,RO,SM,RS,SK,SI,ES,SE,CH,UA,GB,AR,CO,CR,BR,MX,PE,BH,IL,JO,KW,PS,QA,SA,AE,CA,UM,US,KR,VN,MA,ZA,VA,CL,SV,GT,HN,PA", currency = "AED,AUD,CHF,CAD,EUR,GBP,HKD,SGD,USD" } # Bank redirect configs for allowed banks through online_banking_czech_republic payment method
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [bank_config.online_banking_czech_republic] adyen = { banks = "ceska_sporitelna,komercni_banka,platnosc_online_karta_platnicza" } # Bank redirect configs for allowed banks through online_banking_slovakia payment method
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [bank_config.online_banking_slovakia] adyen = { banks = "e_platby_vub,postova_banka,sporo_pay,tatra_pay,viamo" } # Bank redirect configs for allowed banks through online_banking_poland payment method
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [bank_config.online_banking_poland] adyen = { banks = "blik_psp,place_zipko,m_bank,pay_with_ing,santander_przelew24,bank_pekaosa,bank_millennium,pay_with_alior_bank,banki_spoldzielcze,pay_with_inteligo,bnp_paribas_poland,bank_nowy_sa,credit_agricole,pay_with_bos,pay_with_citi_handlowy,pay_with_plus_bank,toyota_bank,velo_bank,e_transfer_pocztowy24" } # Bank redirect configs for allowed banks through open_banking_uk payment method
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [bank_config.open_banking_uk] adyen = { banks = "aib,bank_of_scotland,danske_bank,first_direct,first_trust,halifax,lloyds,monzo,nat_west,nationwide_bank,royal_bank_of_scotland,starling,tsb_bank,tesco_bank,ulster_bank,barclays,hsbc_bank,revolut,santander_przelew24,open_bank_success,open_bank_failure,open_bank_cancelled" } # Bank redirect configs for allowed banks through przelewy24 payment method
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [bank_config.przelewy24] stripe = { banks = "alior_bank,bank_millennium,bank_nowy_bfg_sa,bank_pekao_sa,banki_spbdzielcze,blik,bnp_paribas,boz,citi,credit_agricole,e_transfer_pocztowy24,getin_bank,idea_bank,inteligo,mbank_mtransfer,nest_przelew,noble_pay,pbac_z_ipko,plus_bank,santander_przelew24,toyota_bank,volkswagen_bank" } # This data is used to call respective connectors for wallets and cards
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [scheduler] stream = "SCHEDULER_STREAM" graceful_shutdown_interval = 60000 # Specifies how much time to wait while re-attempting shutdown for a service (in milliseconds) loop_interval = 5000 # Specifies how much time to wait before starting the defined behaviour of producer or consumer (in milliseconds)
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [scheduler.consumer] consumer_group = "SCHEDULER_GROUP" disabled = false # This flag decides if the consumer should actively consume task
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [scheduler.producer] upper_fetch_limit = 0 # Upper limit for fetching entries from the redis queue (in seconds) lower_fetch_limit = 1800 # Lower limit for fetching entries from redis queue (in seconds) lock_key = "PRODUCER_LOCKING_KEY" # The following keys defines the producer lock that is created in redis with lock_ttl = 160 # the ttl being the expiry (in seconds) # Scheduler server configuration
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [scheduler.server] port = 3000 # Port on which the server will listen for incoming requests host = "127.0.0.1" # Host IP address to bind the server to workers = 1 # Number of actix workers to handle incoming requests concurrently batch_size = 200 # Specifies the batch size the producer will push under a single entry in the redis queue # Drainer configuration, which handles draining raw SQL queries from Redis streams to the SQL database
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [drainer] stream_name = "DRAINER_STREAM" # Specifies the stream name to be used by the drainer num_partitions = 64 # Specifies the number of partitions the stream will be divided into max_read_count = 100 # Specifies the maximum number of entries that would be read from redis stream in one call shutdown_interval = 1000 # Specifies how much time to wait, while waiting for threads to complete execution (in milliseconds) loop_interval = 500 # Specifies how much time to wait after checking all the possible streams in completed (in milliseconds) # Filtration logic for list payment method, allowing use to limit payment methods based on the requirement country and currency
ast_fragments
# file: hyperswitch/config/config.example.toml | crate: config [pm_filters.stripe] # ^--- This can be any connector (can be multiple) paypal = { currency = "USD,INR", country = "US" } # ^ ^------- comma-separated values # ^------------------------------- any valid payment method type (can be multiple) (for cards this should be card_network) # If either currency or country isn't provided then, all possible values are accepted
ast_fragments