Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci: introduce required spell check for certain critical directories (#11315)
Hrithikesh5b5066f867d7
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.ymlindex 887fe97853..9941dd52c9 100644--- a/.github/workflows/CI-pr.yml+++ b/.github/workflows/CI-pr.yml@@ -1,5 +1,8 @@name: CI-pr+permissions:+ contents: read+on:pull_request:@@ -43,7 +46,7 @@ jobs:- name: Checkout repository with tokenif: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}- uses: actions/checkout@v4+ uses: actions/checkout@v6with:fetch-depth: 0ref: ${{ github.event.pull_request.head.ref }}@@ -51,7 +54,7 @@ jobs:- name: Checkout repository for forkif: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install Rustuses: dtolnay/rust-toolchain@master@@ -97,7 +100,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install mold linkeruses: rui314/setup-mold@v1@@ -157,11 +160,11 @@ jobs:- name: Checkout repository for forkif: ${{ (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Checkout repository with tokenif: ${{ (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v4+ uses: actions/checkout@v6with:fetch-depth: 0ref: ${{ github.event.pull_request.head.ref }}@@ -220,18 +223,40 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Spell checkuses: crate-ci/typos@master+ typos-required:+ name: Spell check specific critical directories+ runs-on: ubuntu-latest+ steps:+ - name: Checkout repository+ uses: actions/checkout@v6++ - name: Spell check specific directories+ uses: crate-ci/typos@master+ with:+ files: |+ api-reference/+ crates/api_models/+ crates/common_utils/+ crates/common_enums/+ crates/diesel_models/+ migrations/+ v2_migrations/+ v2_compatible_migrations/+ config/+ docs/+check-v2:name: Check compilation for V2 featuresruns-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install mold linkeruses: rui314/setup-mold@v1diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.ymlindex 1b32167d62..e166435846 100644--- a/.github/workflows/CI-push.yml+++ b/.github/workflows/CI-push.yml@@ -40,7 +40,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install Rustuses: dtolnay/rust-toolchain@master@@ -69,7 +69,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install mold linkeruses: rui314/setup-mold@v1@@ -143,7 +143,7 @@ jobs:# steps:# - name: Checkout repository- # uses: actions/checkout@v4+ # uses: actions/checkout@v6# - name: Run cargo-deny# uses: EmbarkStudios/[email protected]@@ -167,7 +167,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install mold linkeruses: rui314/setup-mold@v1@@ -237,7 +237,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Spell checkuses: crate-ci/typos@master@@ -248,7 +248,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install mold linkeruses: rui314/setup-mold@v1diff --git a/.github/workflows/archive/connector-sanity-tests.yml b/.github/workflows/archive/connector-sanity-tests.ymlindex c7417eab74..16b2c14452 100644--- a/.github/workflows/archive/connector-sanity-tests.yml+++ b/.github/workflows/archive/connector-sanity-tests.yml@@ -77,7 +77,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install Rustuses: dtolnay/rust-toolchain@masterdiff --git a/.github/workflows/archive/connector-ui-sanity-tests.yml b/.github/workflows/archive/connector-ui-sanity-tests.ymlindex cc299caaac..0917f4bffe 100644--- a/.github/workflows/archive/connector-ui-sanity-tests.yml+++ b/.github/workflows/archive/connector-ui-sanity-tests.yml@@ -80,7 +80,7 @@ jobs:- name: Checkout repositoryif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Download Encrypted TOML from S3 and Decryptif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}diff --git a/.github/workflows/create-hotfix-branch.yml b/.github/workflows/create-hotfix-branch.ymlindex cb204aad46..f400f71d1f 100644--- a/.github/workflows/create-hotfix-branch.yml+++ b/.github/workflows/create-hotfix-branch.yml@@ -16,7 +16,7 @@ jobs:private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6with:fetch-depth: 0token: ${{ steps.generate_token.outputs.token }}diff --git a/.github/workflows/create-hotfix-tag.yml b/.github/workflows/create-hotfix-tag.ymlindex d3130ce49a..9d74d7ed6a 100644--- a/.github/workflows/create-hotfix-tag.yml+++ b/.github/workflows/create-hotfix-tag.yml@@ -16,7 +16,7 @@ jobs:private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6with:fetch-depth: 0token: ${{ steps.generate_token.outputs.token }}diff --git a/.github/workflows/hotfix-pr-check.yml b/.github/workflows/hotfix-pr-check.ymlindex e6da829edc..b40f8afa98 100644--- a/.github/workflows/hotfix-pr-check.yml+++ b/.github/workflows/hotfix-pr-check.yml@@ -19,7 +19,7 @@ jobs:HOTFIX_PR_NEEDS_MAIN_BRANCH_PR_MERGED: ${{ vars.HOTFIX_PR_NEEDS_MAIN_BRANCH_PR_MERGED }}steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Get hotfix pull request bodyshell: bashdiff --git a/.github/workflows/migration-check.yaml b/.github/workflows/migration-check.yamlindex a6871945f0..5456cf8d39 100644--- a/.github/workflows/migration-check.yaml+++ b/.github/workflows/migration-check.yaml@@ -45,7 +45,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install Rustuses: dtolnay/rust-toolchain@masterdiff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yamlindex 4009af20a1..d5c4cf4482 100644--- a/.github/workflows/nix.yaml+++ b/.github/workflows/nix.yaml@@ -13,5 +13,5 @@ jobs:matrix:system: [x86_64-linux, aarch64-darwin]steps:- - uses: actions/checkout@v4+ - uses: actions/checkout@v6- run: om ci run --extra-access-tokens ${{ secrets.GITHUB_TOKEN }} --systems "${{ matrix.system }}"diff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.ymlindex a6dd11e489..ffe16604f8 100644--- a/.github/workflows/postman-collection-runner.yml+++ b/.github/workflows/postman-collection-runner.yml@@ -49,7 +49,7 @@ jobs:steps:- name: Repository checkout- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Download Encrypted TOML from S3 and Decryptif: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}diff --git a/.github/workflows/pr-title-spell-check.yml b/.github/workflows/pr-title-spell-check.ymlindex 62ea935906..2e9a67ddb2 100644--- a/.github/workflows/pr-title-spell-check.yml+++ b/.github/workflows/pr-title-spell-check.yml@@ -13,7 +13,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Store PR title in a fileshell: bashdiff --git a/.github/workflows/release-nightly-version-reusable.yml b/.github/workflows/release-nightly-version-reusable.ymlindex 7607b8c94f..758f7d60d2 100644--- a/.github/workflows/release-nightly-version-reusable.yml+++ b/.github/workflows/release-nightly-version-reusable.yml@@ -29,7 +29,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6with:fetch-depth: 0token: ${{ secrets.token }}diff --git a/.github/workflows/release-nightly-version.yml b/.github/workflows/release-nightly-version.ymlindex 13e844e7c5..dc1b09e288 100644--- a/.github/workflows/release-nightly-version.yml+++ b/.github/workflows/release-nightly-version.yml@@ -28,7 +28,7 @@ jobs:steps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6with:fetch-depth: 0token: ${{ secrets.AUTO_RELEASE_PAT }}diff --git a/.github/workflows/release-stable-version.yml b/.github/workflows/release-stable-version.ymlindex 7b8fe4e25c..506218cd67 100644--- a/.github/workflows/release-stable-version.yml+++ b/.github/workflows/release-stable-version.yml@@ -25,7 +25,7 @@ jobs:private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6with:fetch-depth: 0diff --git a/.github/workflows/validate-openapi-spec.yml b/.github/workflows/validate-openapi-spec.ymlindex 57d0b209f6..06db2c836d 100644--- a/.github/workflows/validate-openapi-spec.yml+++ b/.github/workflows/validate-openapi-spec.yml@@ -26,14 +26,14 @@ jobs:- name: Checkout PR from forkif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v4+ uses: actions/checkout@v6with:ref: ${{ github.event.pull_request.head.ref }}repository: ${{ github.event.pull_request.head.repo.full_name }}- name: Checkout PR with tokenif: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}- uses: actions/checkout@v4+ uses: actions/checkout@v6with:ref: ${{ github.event.pull_request.head.ref }}repository: ${{ github.event.pull_request.head.repo.full_name }}@@ -41,7 +41,7 @@ jobs:- name: Checkout merge group HEAD commitif: ${{ github.event_name == 'merge_group' }}- uses: actions/checkout@v4+ uses: actions/checkout@v6with:ref: ${{ github.event.merge_group.head_sha }}diff --git a/.github/workflows/wasm-bulild-check.yml b/.github/workflows/wasm-bulild-check.ymlindex d9b2860a36..e2c8b0a067 100644--- a/.github/workflows/wasm-bulild-check.yml+++ b/.github/workflows/wasm-bulild-check.yml@@ -16,7 +16,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/checkout@v4+ uses: actions/checkout@v6- name: Install Rustuses: dtolnay/rust-toolchain@masterdiff --git a/.typos.toml b/.typos.tomlindex 9fb28adc85..89f1f82cff 100644--- a/.typos.toml+++ b/.typos.toml@@ -5,6 +5,29 @@ extend-ignore-identifiers-re = [][default.extend-identifiers]+# Would have to break the api contract for fixing this. Not worth the fix.+sepa_guarenteed_debit = "sepa_guarenteed_debit"+sepa_guarenteed_bank_debit = "sepa_guarenteed_bank_debit"+SepaGuarenteedDebit = "SepaGuarenteedDebit"+SepaGuarenteedBankDebit = "SepaGuarenteedBankDebit"+ThreedsInvokeAndCompleteAutorize = "ThreedsInvokeAndCompleteAutorize"++whe = "whe" # this is a prefix identifier webhook endpoint id+SiSaKet = "SiSaKet" # thailand state abbreviation+Tak = "Tak" # thailand state abbreviation+AGS = "AGS" # philippines state abbreviation+AgusanDelSur = "AgusanDelSur" # philippines state abbreviation+CamarinesSur = "CamarinesSur" # philippines state abbreviation+DavaoDelSur = "DavaoDelSur" # philippines state abbreviation+IlocosSur = "IlocosSur" # philippines state abbreviation+LanaoDelSur = "LanaoDelSur" # philippines state abbreviation+MaguindanaoDelSur = "MaguindanaoDelSur" # philippines state abbreviation+SurigaoDelSur = "SurigaoDelSur" # philippines state abbreviation+GES = "GES" # france state abbreviation+VOR = "VOR" # russia state abbreviation+Arges = "Arges" # Romania state abbreviation++pro_aMoPnEkgCVnh2WVsFe32 = "pro_aMoPnEkgCVnh2WVsFe32" # an example for profile_id in api referenceABD = "ABD" # Aberdeenshire, UK ISO 3166-2 codeACTIVITE = "ACTIVITE" # French translation of activityAER = "AER" # An alias to Api Error Responsediff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.jsonindex b64ccc9316..84c0bfc80e 100644--- a/api-reference/v1/openapi_spec_v1.json+++ b/api-reference/v1/openapi_spec_v1.json@@ -1694,7 +1694,7 @@},"responses": {"200": {- "description": "Eligbility submit is successful",+ "description": "Eligibility submit is successful","content": {"application/json": {"schema": {@@ -8704,7 +8704,7 @@],"properties": {"Passthrough": {- "$ref": "#/components/schemas/PassthroughAddtionalData"+ "$ref": "#/components/schemas/PassthroughAdditionalData"}}}@@ -24793,7 +24793,7 @@}}},- "PassthroughAddtionalData": {+ "PassthroughAdditionalData": {"type": "object","description": "additional payout method details for passthrough payout method","required": [@@ -32820,7 +32820,7 @@],"properties": {"passthrough": {- "$ref": "#/components/schemas/PassthroughAddtionalData"+ "$ref": "#/components/schemas/PassthroughAdditionalData"}}}@@ -38658,7 +38658,7 @@},"consume_post_message_for_three_ds_method_completion": {"type": "boolean",- "description": "Indicates whethere to wait for Post message after 3DS method data submission"+ "description": "Indicates whether to wait for Post message after 3DS method data submission"}}}diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.jsonindex 41d91365c7..8f0d93efa5 100644--- a/api-reference/v2/openapi_spec_v2.json+++ b/api-reference/v2/openapi_spec_v2.json@@ -5439,7 +5439,7 @@],"properties": {"Passthrough": {- "$ref": "#/components/schemas/PassthroughAddtionalData"+ "$ref": "#/components/schemas/PassthroughAdditionalData"}}}@@ -19095,7 +19095,7 @@}}},- "PassthroughAddtionalData": {+ "PassthroughAdditionalData": {"type": "object","description": "additional payout method details for passthrough payout method","required": [@@ -24859,7 +24859,7 @@],"properties": {"passthrough": {- "$ref": "#/components/schemas/PassthroughAddtionalData"+ "$ref": "#/components/schemas/PassthroughAdditionalData"}}}@@ -29480,7 +29480,7 @@},"three_ds_connector": {"type": "string",- "description": "Prefered 3ds Connector",+ "description": "Preferred 3ds Connector","nullable": true}}@@ -29518,7 +29518,7 @@},"consume_post_message_for_three_ds_method_completion": {"type": "boolean",- "description": "Indicates whethere to wait for Post message after 3DS method data submission"+ "description": "Indicates whether to wait for Post message after 3DS method data submission"}}}diff --git a/config/config.example.toml b/config/config.example.tomlindex 2e69610310..4bc50fe946 100644--- a/config/config.example.toml+++ b/config/config.example.toml@@ -512,7 +512,7 @@ private_key = "" # RSA private key used for signing ID tokens (Generate using:[oidc.client.c1]client_id = "" # OIDC client identifier for the relying party (Generate using: openssl rand -hex 8)client_secret = "" # Client secret used to authenticate the client (Generate using: openssl rand -hex 32)-redirect_uri = "" # Redirect URI registered for the OIDC client+redirect_uri = "" # Redirect URI registered for the OIDC client#tokenization configuration which describe token lifetime and payment method for specific connector[tokenization]@@ -1039,8 +1039,8 @@ adyen.banks = "bangkok_bank,krungsri_bank,krung_thai_bank,the_siam_commercial_ba[applepay_decrypt_keys]apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE" # Payment Processing Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Payment Processing Certificateapple_pay_ppc_key = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE_KEY" # Private key generated by Elliptic-curve prime256v1 curve. You can use `openssl ecparam -out private.key -name prime256v1 -genkey` to generate the private key-apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE" # Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate-apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY" # Private key generated by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key+apple_pay_merchant_cert = "APPLE_PAY_MERCHANT_CERTIFICATE" # Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate+apple_pay_merchant_cert_key = "APPLE_PAY_MERCHANT_CERTIFICATE_KEY" # Private key generated by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key[paze_decrypt_keys]paze_private_key = "PAZE_PRIVATE_KEY" # Base 64 Encoded Private Key File cakey.pem generated for Paze -> Command to create private key: openssl req -newkey rsa:2048 -x509 -keyout cakey.pem -out cacert.pem -days 365diff --git a/config/deployments/env_specific.toml b/config/deployments/env_specific.tomlindex fdec562d29..e2af3277a9 100644--- a/config/deployments/env_specific.toml+++ b/config/deployments/env_specific.toml@@ -1,4 +1,4 @@-# For explanantion of each config, please refer to the `config/config.example.toml` file+# For explanation of each config, please refer to the `config/config.example.toml` file# This is used to identify the running application instance# Check common_enums::ApplicationSource for available options@@ -36,8 +36,8 @@ internal_api_key = "test_internal_api_key"[applepay_decrypt_keys]apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE" # Payment Processing Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Payment Processing Certificateapple_pay_ppc_key = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE_KEY" # Private key generated by Elliptic-curve prime256v1 curve. You can use `openssl ecparam -out private.key -name prime256v1 -genkey` to generate the private key-apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE" # Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate-apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY" # Private key generated by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key+apple_pay_merchant_cert = "APPLE_PAY_MERCHANT_CERTIFICATE" # Merchant Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Merchant Identity Certificate+apple_pay_merchant_cert_key = "APPLE_PAY_MERCHANT_CERTIFICATE_KEY" # Private key generated by RSA:2048 algorithm. Refer Hyperswitch Docs (https://docs.hyperswitch.io/hyperswitch-cloud/payment-methods-setup/wallets/apple-pay/ios-application/) to generate the private key[paze_decrypt_keys]paze_private_key = "PAZE_PRIVATE_KEY" # Base 64 Encoded Private Key File cakey.pem generated for Paze -> Command to create private key: openssl req -newkey rsa:2048 -x509 -keyout cakey.pem -out cacert.pem -days 365@@ -303,7 +303,7 @@ shutdown_timeout = 30# HTTP Request body limit. Defaults to 32kBrequest_body_limit = 32_768# Keep-alive timeout in seconds-keep_alive = 5+keep_alive = 5# Client request timeout in millisecondsclient_request_timeout = 5000# Client disconnect timeout in milliseconds@@ -474,4 +474,4 @@ private_key = "" # RSA private key used for signing ID tokens (Generate using:[oidc.client.c1]client_id = "" # OIDC client identifier for the relying party (Generate using: openssl rand -hex 8)client_secret = "" # Client secret used to authenticate the client (Generate using: openssl rand -hex 32)-redirect_uri = "" # Redirect URI registered for the OIDC client\ No newline at end of file+redirect_uri = "" # Redirect URI registered for the OIDC clientdiff --git a/config/development.toml b/config/development.tomlindex c0bce35dd6..39afcc45c1 100644--- a/config/development.toml+++ b/config/development.toml@@ -1210,8 +1210,8 @@ payout_eligibility = true[applepay_decrypt_keys]apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE"apple_pay_ppc_key = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE_KEY"-apple_pay_merchant_cert = "APPLE_PAY_MERCHNAT_CERTIFICATE"-apple_pay_merchant_cert_key = "APPLE_PAY_MERCHNAT_CERTIFICATE_KEY"+apple_pay_merchant_cert = "APPLE_PAY_MERCHANT_CERTIFICATE"+apple_pay_merchant_cert_key = "APPLE_PAY_MERCHANT_CERTIFICATE_KEY"[paze_decrypt_keys]paze_private_key = "PAZE_PRIVATE_KEY"@@ -1523,4 +1523,3 @@ polling_interval = 15 # Polling interval in seconds for configuration updates[micro_services]payment_methods_base_url = "http://localhost:8082"payment_methods_prefix = "v2"-diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rsindex 709b79e419..961e404026 100644--- a/crates/api_models/src/payment_methods.rs+++ b/crates/api_models/src/payment_methods.rs@@ -755,7 +755,7 @@ pub struct CardDetail {}// This struct is for collecting Proxy Card Data-// All card related data present in this struct are tokenzied+// All card related data present in this struct are tokenized// No strict type is present to accept tokenized data#[cfg(feature = "v2")]#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex 55fa3f8000..1689077b21 100644--- a/crates/api_models/src/payments.rs+++ b/crates/api_models/src/payments.rs@@ -6722,7 +6722,7 @@ pub struct ThreeDsData {#[schema(value_type = Option<CardNetwork>, example = "Visa")]#[smithy(value_type = "Option<CardNetwork>")]pub card_network: Option<api_enums::CardNetwork>,- /// Prefered 3ds Connector+ /// Preferred 3ds Connector#[smithy(value_type = "Option<String>")]pub three_ds_connector: Option<String>,}@@ -6746,7 +6746,7 @@ pub enum ThreeDsMethodData {/// Three DS Method Key#[smithy(value_type = "Option<ThreeDsMethodKey>")]three_ds_method_key: Option<ThreeDsMethodKey>,- /// Indicates whethere to wait for Post message after 3DS method data submission+ /// Indicates whether to wait for Post message after 3DS method data submission#[smithy(value_type = "bool")]consume_post_message_for_three_ds_method_completion: bool,},@@ -8521,7 +8521,7 @@ pub struct PaymentsResponse {pub authentication_type: Option<api_enums::AuthenticationType>,/// The authentication type that was appliced for this order- /// This depeneds on the 3DS rules configured, If not a default authentication type will be applied+ /// This depends on the 3DS rules configured, If not a default authentication type will be applied#[schema(value_type = Option<AuthenticationType>, example = "no_three_ds", default = "no_three_ds")]pub authentication_type_applied: Option<api_enums::AuthenticationType>,diff --git a/crates/api_models/src/payouts.rs b/crates/api_models/src/payouts.rsindex 7597742521..c938bb2186 100644--- a/crates/api_models/src/payouts.rs+++ b/crates/api_models/src/payouts.rs@@ -661,8 +661,8 @@ pub enum PayoutMethodDataResponse {Wallet(Box<payout_method_utils::WalletAdditionalData>),#[schema(value_type = BankRedirectAdditionalData)]BankRedirect(Box<payout_method_utils::BankRedirectAdditionalData>),- #[schema(value_type = PassthroughAddtionalData)]- Passthrough(Box<payout_method_utils::PassthroughAddtionalData>),+ #[schema(value_type = PassthroughAdditionalData)]+ Passthrough(Box<payout_method_utils::PassthroughAdditionalData>),}#[derive(@@ -1089,7 +1089,7 @@ impl From<BankRedirect> for payout_method_utils::BankRedirectAdditionalData {}}-impl From<Passthrough> for payout_method_utils::PassthroughAddtionalData {+impl From<Passthrough> for payout_method_utils::PassthroughAdditionalData {fn from(passthrough_data: Passthrough) -> Self {Self {psp_token: passthrough_data.psp_token.into(),diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rsindex 2a7f2805e7..72658a00d1 100644--- a/crates/common_enums/src/enums.rs+++ b/crates/common_enums/src/enums.rs@@ -2493,7 +2493,7 @@ impl PaymentMethodType {Self::RedPagos => "RedPagos",Self::SamsungPay => "Samsung Pay",Self::Sepa => "SEPA Direct Debit",- Self::SepaGuarenteedDebit => "SEPA Guarenteed Direct Debit",+ Self::SepaGuarenteedDebit => "SEPA Guaranteed Direct Debit",Self::SepaBankTransfer => "SEPA Bank Transfer",Self::Sofort => "Sofort",Self::Skrill => "Skrill",diff --git a/crates/common_utils/src/crypto.rs b/crates/common_utils/src/crypto.rsindex ef2e7e876f..35efa6b907 100644--- a/crates/common_utils/src/crypto.rs+++ b/crates/common_utils/src/crypto.rs@@ -534,7 +534,7 @@ impl VerifySignature for RsaSha256 {let verifying_key = rsa::pkcs1v15::VerifyingKey::<rsa::sha2::Sha256>::new(rsa_public_key);- // transfrom the signature+ // transform the signaturelet decoded_signature = BASE64_ENGINE.decode(signature).change_context(errors::CryptoError::SignatureVerificationFailed)diff --git a/crates/common_utils/src/payout_method_utils.rs b/crates/common_utils/src/payout_method_utils.rsindex ecb1795d5f..96707d604a 100644--- a/crates/common_utils/src/payout_method_utils.rs+++ b/crates/common_utils/src/payout_method_utils.rs@@ -25,7 +25,7 @@ pub enum AdditionalPayoutMethodData {/// Additional data for Bank Redirect payout methodBankRedirect(Box<BankRedirectAdditionalData>),/// Additional data for Passthrough payout method- Passthrough(Box<PassthroughAddtionalData>),+ Passthrough(Box<PassthroughAdditionalData>),}crate::impl_to_sql_from_sql_json!(AdditionalPayoutMethodData);@@ -290,7 +290,7 @@ pub struct InteracAdditionalData {Eq, PartialEq, Clone, Debug, Deserialize, Serialize, FromSqlRow, AsExpression, ToSchema,)]#[diesel(sql_type = Jsonb)]-pub struct PassthroughAddtionalData {+pub struct PassthroughAdditionalData {/// Psp_token of the passthrough flow#[schema(value_type = String, example = "token_12345")]pub psp_token: MaskedPspToken,diff --git a/crates/diesel_models/src/payment_methods_session.rs b/crates/diesel_models/src/payment_methods_session.rsindex ef622933f8..03997c381a 100644--- a/crates/diesel_models/src/payment_methods_session.rs+++ b/crates/diesel_models/src/payment_methods_session.rs@@ -45,7 +45,7 @@ impl PaymentMethodSession {billing: update_session.billing.or(billing),psp_tokenization: update_session.psp_tokenization.or(psp_tokenization),network_tokenization: update_session.network_tokenization.or(network_tokenization),- tokenization_data: update_session.tokenzation_data.or(tokenization_data),+ tokenization_data: update_session.tokenization_data.or(tokenization_data),expires_at,return_url,associated_payment_methods,@@ -62,5 +62,5 @@ pub struct PaymentMethodsSessionUpdateInternal {pub billing: Option<common_utils::encryption::Encryption>,pub psp_tokenization: Option<common_types::payment_methods::PspTokenization>,pub network_tokenization: Option<common_types::payment_methods::NetworkTokenization>,- pub tokenzation_data: Option<masking::Secret<serde_json::Value>>,+ pub tokenization_data: Option<masking::Secret<serde_json::Value>>,}diff --git a/crates/openapi/src/openapi.rs b/crates/openapi/src/openapi.rsindex d488a9ff77..73c94472ae 100644--- a/crates/openapi/src/openapi.rs+++ b/crates/openapi/src/openapi.rs@@ -267,7 +267,7 @@ Never share your secret api keys. Keep them guarded and secure.common_utils::payout_method_utils::InteracAdditionalData,common_utils::payout_method_utils::VenmoAdditionalData,common_utils::payout_method_utils::ApplePayDecryptAdditionalData,- common_utils::payout_method_utils::PassthroughAddtionalData,+ common_utils::payout_method_utils::PassthroughAdditionalData,common_types::payments::SplitPaymentsRequest,common_types::connector_webhook_configuration::WebhookSetupCapabilities,common_types::connector_webhook_configuration::WebhookConfigType,diff --git a/crates/openapi/src/openapi_v2.rs b/crates/openapi/src/openapi_v2.rsindex 5cc8b9a086..3053cbfd6f 100644--- a/crates/openapi/src/openapi_v2.rs+++ b/crates/openapi/src/openapi_v2.rs@@ -209,7 +209,7 @@ Never share your secret api keys. Keep them guarded and secure.common_utils::payout_method_utils::InteracAdditionalData,common_utils::payout_method_utils::VenmoAdditionalData,common_utils::payout_method_utils::ApplePayDecryptAdditionalData,- common_utils::payout_method_utils::PassthroughAddtionalData,+ common_utils::payout_method_utils::PassthroughAdditionalData,common_types::payments::SplitPaymentsRequest,common_types::payments::GpayTokenizationData,common_types::payments::GPayPredecryptData,diff --git a/crates/openapi/src/routes/payments.rs b/crates/openapi/src/routes/payments.rsindex 6351acb48d..91d695a544 100644--- a/crates/openapi/src/routes/payments.rs+++ b/crates/openapi/src/routes/payments.rs@@ -259,7 +259,7 @@"off_session": true,"recurring_details": {"type": "payment_method_id",- "data": "pm_123456789"+ "data": "pm_123456789"},"split_payments": {"stripe_split_payment": {@@ -468,8 +468,8 @@"customer_id": "cus_abcdefgh","customer": {"id": "cus_abcdefgh",- "name": "John Dough",- "email": "[email protected]",+ "name": "John Dough",+ "email": "[email protected]","phone": "9123456789"},"billing": {@@ -501,8 +501,8 @@"connector_mandate_id": "pm_abcdefgh","customer": {"id": "cus_abcdefgh",- "name": "John Dough",- "email": "[email protected]",+ "name": "John Dough",+ "email": "[email protected]","phone": "9123456789"},"billing": {@@ -534,8 +534,8 @@"connector_mandate_id": "pm_abcdefgh","customer": {"id": "cus_abcdefgh",- "name": "John Dough",- "email": "[email protected]",+ "name": "John Dough",+ "email": "[email protected]","phone": "9123456789"},"billing": {@@ -1041,7 +1041,7 @@ pub fn payments_update_metadata() {}),request_body=PaymentsEligibilityRequest,responses(- (status = 200, description = "Eligbility submit is successful", body = PaymentsEligibilityResponse),+ (status = 200, description = "Eligibility submit is successful", body = PaymentsEligibilityResponse),(status = 400, description = "Bad Request", body = GenericErrorResponseOpenApi)),tag = "Payments",