Skip to content

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

ci: introduce required spell check for certain critical directories (#11315)

Hrithikesh5b5066f867d7
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.yml
index 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 token
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
@@ -51,7 +54,7 @@ jobs:
- name: Checkout repository for fork
if: ${{ 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 Rust
uses: dtolnay/rust-toolchain@master
@@ -97,7 +100,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install mold linker
uses: rui314/setup-mold@v1
@@ -157,11 +160,11 @@ jobs:
- name: Checkout repository for fork
if: ${{ (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 token
if: ${{ (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
@@ -220,18 +223,40 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Spell check
uses: 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 features
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install mold linker
uses: rui314/setup-mold@v1
diff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.yml
index 1b32167d62..e166435846 100644
--- a/.github/workflows/CI-push.yml
+++ b/.github/workflows/CI-push.yml
@@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@master
@@ -69,7 +69,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install mold linker
uses: 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 linker
uses: rui314/setup-mold@v1
@@ -237,7 +237,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Spell check
uses: crate-ci/typos@master
@@ -248,7 +248,7 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install mold linker
uses: rui314/setup-mold@v1
diff --git a/.github/workflows/archive/connector-sanity-tests.yml b/.github/workflows/archive/connector-sanity-tests.yml
index 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 Rust
uses: dtolnay/rust-toolchain@master
diff --git a/.github/workflows/archive/connector-ui-sanity-tests.yml b/.github/workflows/archive/connector-ui-sanity-tests.yml
index 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 repository
if: ${{ (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 Decrypt
if: ${{ (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.yml
index 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@v6
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
diff --git a/.github/workflows/create-hotfix-tag.yml b/.github/workflows/create-hotfix-tag.yml
index 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@v6
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
diff --git a/.github/workflows/hotfix-pr-check.yml b/.github/workflows/hotfix-pr-check.yml
index 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 body
shell: bash
diff --git a/.github/workflows/migration-check.yaml b/.github/workflows/migration-check.yaml
index 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 Rust
uses: dtolnay/rust-toolchain@master
diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml
index 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.yml
index 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 Decrypt
if: ${{ ((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.yml
index 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-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Store PR title in a file
shell: bash
diff --git a/.github/workflows/release-nightly-version-reusable.yml b/.github/workflows/release-nightly-version-reusable.yml
index 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@v6
with:
fetch-depth: 0
token: ${{ secrets.token }}
diff --git a/.github/workflows/release-nightly-version.yml b/.github/workflows/release-nightly-version.yml
index 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@v6
with:
fetch-depth: 0
token: ${{ secrets.AUTO_RELEASE_PAT }}
diff --git a/.github/workflows/release-stable-version.yml b/.github/workflows/release-stable-version.yml
index 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@v6
with:
fetch-depth: 0
diff --git a/.github/workflows/validate-openapi-spec.yml b/.github/workflows/validate-openapi-spec.yml
index 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 fork
if: ${{ (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
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Checkout PR with token
if: ${{ (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
with:
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 commit
if: ${{ github.event_name == 'merge_group' }}
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
with:
ref: ${{ github.event.merge_group.head_sha }}
diff --git a/.github/workflows/wasm-bulild-check.yml b/.github/workflows/wasm-bulild-check.yml
index 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-latest
steps:
- name: Checkout repository
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@master
diff --git a/.typos.toml b/.typos.toml
index 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 reference
ABD = "ABD" # Aberdeenshire, UK ISO 3166-2 code
ACTIVITE = "ACTIVITE" # French translation of activity
AER = "AER" # An alias to Api Error Response
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index 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.json
index 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.toml
index 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 Certificate
apple_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
diff --git a/config/deployments/env_specific.toml b/config/deployments/env_specific.toml
index 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 Certificate
apple_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 32kB
request_body_limit = 32_768
# Keep-alive timeout in seconds
-keep_alive = 5
+keep_alive = 5
# Client request timeout in milliseconds
client_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 client
diff --git a/config/development.toml b/config/development.toml
index 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.rs
index 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.rs
index 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.rs
index 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.rs
index 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.rs
index 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 signature
let 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.rs
index 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 method
BankRedirect(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.rs
index 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.rs
index 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.rs
index 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.rs
index 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",