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: update versions of actions (#1388)
Sanchith Hegde638fc4221786
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.ymlindex 3a85f30221..a4ab61e20c 100644--- a/.github/workflows/CI.yml+++ b/.github/workflows/CI.yml@@ -56,7 +56,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/[email protected]+ uses: actions/checkout@v3- name: Install Rustuses: dtolnay/rust-toolchain@master@@ -81,9 +81,10 @@ jobs:steps:- name: Checkout repository- uses: actions/[email protected]+ uses: actions/checkout@v3- name: "Fetch base branch"+ shell: bashrun: git fetch origin $GITHUB_BASE_REF --depth 1- name: Install mold linker@@ -97,12 +98,12 @@ jobs:with:toolchain: 1.65- - uses: Swatinem/[email protected]+ - uses: Swatinem/[email protected]with:save-if: ${{ github.event_name == 'push' }}- name: Install cargo-hack- uses: baptiste0928/[email protected]+ uses: baptiste0928/[email protected]with:crate: cargo-hack@@ -111,6 +112,7 @@ jobs:run: sed -i 's/rustflags = \[/rustflags = \[\n "-Dwarnings",/' .cargo/config.toml- name: Check files changed+ shell: bashrun: |if git diff --exit-code --quiet origin/$GITHUB_BASE_REF -- crates/api_models/; thenecho "api_models_changes_exist=false" >> $GITHUB_ENV@@ -165,42 +167,52 @@ jobs:- name: Cargo hack api_modelsif: env.api_models_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p api_models- name: Cargo hack common_enumsif: env.common_enums_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p common_enums- name: Cargo hack common_utilsif: env.common_utils_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p common_utils- name: Cargo hack drainerif: env.drainer_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p drainer- name: Cargo hack maskingif: env.masking_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p masking- name: Cargo hack redis_interfaceif: env.redis_interface_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p redis_interface- name: Cargo hack routerif: env.router_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --skip kms,basilisk,kv_store,accounts_cache,openapi --no-dev-deps -p router- name: Cargo hack router_deriveif: env.router_derive_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p router_derive- name: Cargo hack router_envif: env.router_env_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p router_env- name: Cargo hack storage_modelsif: env.storage_models_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p storage_models# cargo-deny:@@ -217,7 +229,7 @@ jobs:# steps:# - name: Checkout repository- # uses: actions/[email protected]+ # uses: actions/checkout@v3# - name: Run cargo-deny# uses: EmbarkStudios/[email protected]@@ -237,9 +249,10 @@ jobs:steps:- name: Checkout repository- uses: actions/[email protected]+ uses: actions/checkout@v3- name: "Fetch base branch"+ shell: bashrun: git fetch origin $GITHUB_BASE_REF --depth 1- name: Install mold linker@@ -252,19 +265,19 @@ jobs:uses: dtolnay/rust-toolchain@masterwith:toolchain: stable- components: clippy, rustfmt+ components: clippy- name: Install cargo-hack- uses: baptiste0928/[email protected]+ uses: baptiste0928/[email protected]with:crate: cargo-hack# - name: Install cargo-nextest- # uses: baptiste0928/[email protected]+ # uses: baptiste0928/[email protected]# with:# crate: cargo-nextest- - uses: Swatinem/[email protected]+ - uses: Swatinem/[email protected]with:save-if: ${{ github.event_name == 'push' }}@@ -283,6 +296,7 @@ jobs:run: cargo clippy --all-features --all-targets- name: Check files changed+ shell: bashrun: |if git diff --exit-code --quiet origin/$GITHUB_BASE_REF -- crates/api_models/; thenecho "api_models_changes_exist=false" >> $GITHUB_ENV@@ -337,42 +351,52 @@ jobs:- name: Cargo hack api_modelsif: env.api_models_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p api_models- name: Cargo hack common_enumsif: env.common_enums_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p common_enums- name: Cargo hack common_utilsif: env.common_utils_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p common_utils- name: Cargo hack drainerif: env.drainer_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p drainer- name: Cargo hack maskingif: env.masking_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p masking- name: Cargo hack redis_interfaceif: env.redis_interface_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p redis_interface- name: Cargo hack routerif: env.router_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --skip kms,basilisk,kv_store,accounts_cache,openapi --no-dev-deps -p router- name: Cargo hack router_deriveif: env.router_derive_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p router_derive- name: Cargo hack router_envif: env.router_env_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p router_env- name: Cargo hack storage_modelsif: env.storage_models_changes_exist == 'true'+ shell: bashrun: cargo hack check --each-feature --no-dev-deps -p storage_modelstypos:@@ -380,8 +404,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/[email protected]+ uses: actions/checkout@v3- name: Spell checkuses: crate-ci/typos@master-diff --git a/.github/workflows/connector-sanity-tests.yml b/.github/workflows/connector-sanity-tests.ymlindex 1b5256ceb2..4d6199a86d 100644--- a/.github/workflows/connector-sanity-tests.yml+++ b/.github/workflows/connector-sanity-tests.yml@@ -79,25 +79,25 @@ jobs:steps:- name: Checkout repository- uses: actions/[email protected]+ uses: actions/checkout@v3- name: Install Rustuses: dtolnay/rust-toolchain@masterwith:toolchain: stable- - uses: Swatinem/[email protected]+ - uses: Swatinem/[email protected]- name: Decrypt connector auth file- run: ./scripts/decrypt_connector_auth.shenv:CONNECTOR_AUTH_PASSPHRASE: ${{ secrets.CONNECTOR_AUTH_PASSPHRASE }}+ shell: bash+ run: ./scripts/decrypt_connector_auth.sh- name: Set connector auth file path in env+ shell: bashrun: echo "CONNECTOR_AUTH_FILE_PATH=$HOME/target/test/connector_auth.toml" >> $GITHUB_ENV- name: Run connector tests- uses: actions-rs/cargo@v1- with:- command: test- args: --package router --test connectors -- "${{ matrix.connector }}::" --test-threads=1+ shell: bash+ run: cargo test --package router --test connectors -- "${{ matrix.connector }}::" --test-threads=1diff --git a/.github/workflows/conventional-commit-check.yml b/.github/workflows/conventional-commit-check.ymlindex 8e7c433464..0f1a16e99f 100644--- a/.github/workflows/conventional-commit-check.yml+++ b/.github/workflows/conventional-commit-check.yml@@ -45,19 +45,9 @@ jobs:with:toolchain: stable- - uses: Swatinem/[email protected]+ - uses: baptiste0928/[email protected]with:- # We can use a single cache entry for all runs of this check, as only cocogitto needs to be cached- shared-key: "pr_title_check"- # We don't build any crates in this repository, no need to cache target directories- cache-targets: "false"- # Save cache even if commit message verification fails.- # Only failure not considered is failures in installing cocogitto itself.- cache-on-failure: "true"-- - name: Install cocogitto- shell: bash- run: cargo install cocogitto+ crate: cocogitto- name: Verify PR title follows conventional commit standardsid: pr_title_checkdiff --git a/.github/workflows/migration-check.yaml b/.github/workflows/migration-check.yamlindex 81d9f42188..201209c3e3 100644--- a/.github/workflows/migration-check.yaml+++ b/.github/workflows/migration-check.yaml@@ -40,26 +40,18 @@ jobs:steps:- name: Checkout repository- uses: actions/[email protected]+ uses: actions/checkout@v3- name: Install Rustuses: dtolnay/rust-toolchain@masterwith:toolchain: stable- - uses: Swatinem/[email protected]+ - uses: baptiste0928/[email protected]with:- # We can use a single cache entry for all runs of this check, as only diesel CLI needs to be cached- shared-key: "migration_verify"- # We don't build any crates in this repository, no need to cache target directories- cache-targets: "false"- # Save cache even if migration verification fails.- # Only failure not considered is failures in installing diesel CLI itself.- cache-on-failure: "true"-- - name: Install diesel_cli- shell: bash- run: cargo install diesel_cli --no-default-features --features postgres+ crate: diesel_cli+ features: postgres+ args: "--no-default-features"- name: Verify `diesel migration run`shell: bashdiff --git a/.github/workflows/validate-generated-json.yml b/.github/workflows/validate-generated-json.ymlindex 3604a44cab..2b5bbe93cd 100644--- a/.github/workflows/validate-generated-json.yml+++ b/.github/workflows/validate-generated-json.yml@@ -17,7 +17,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout repository- uses: actions/[email protected]+ uses: actions/checkout@v3- name: Install Rustuses: dtolnay/rust-toolchain@masterdiff --git a/.typos.toml b/.typos.tomlindex 57cfce73ef..167a5560c1 100644--- a/.typos.toml+++ b/.typos.toml@@ -3,14 +3,18 @@ check-filename = true[default.extend-identifiers]BA = "BA" # Bosnia and Herzegovina country code+CAF = "CAF" # Central African Republic country codeflate2 = "flate2"FO = "FO" # Faroe Islands (the) country code-payment_vas = "payment_vas"-PaymentVas = "PaymentVas"HypoNoeLbFurNiederosterreichUWien = "HypoNoeLbFurNiederosterreichUWien"hypo_noe_lb_fur_niederosterreich_u_wien = "hypo_noe_lb_fur_niederosterreich_u_wien"+NAM = "NAM" # Namibia country code+payment_vas = "payment_vas"+PaymentVas = "PaymentVas"+RegioBank = "RegioBank"SOM = "SOM" # Somalia country codeTHA = "THA" # Thailand country code+ZAR = "ZAR" # South African Rand currency code[default.extend-words]aci = "aci" # Name of a connector@@ -21,4 +25,5 @@ substituters = "substituters" # Present in `flake.nix`[files]extend-exclude = ["config/redis.conf", # `typos` also checked "AKE" in the file, which is present as a quoted string+ "openapi/open_api_spec.yaml", # no longer updated]diff --git a/crates/router/src/core/payments/flows.rs b/crates/router/src/core/payments/flows.rsindex 3a4b93c833..2d052b210e 100644--- a/crates/router/src/core/payments/flows.rs+++ b/crates/router/src/core/payments/flows.rs@@ -4,7 +4,7 @@ pub mod capture_flow;pub mod complete_authorize_flow;pub mod psync_flow;pub mod session_flow;-pub mod verfiy_flow;+pub mod verify_flow;use async_trait::async_trait;diff --git a/crates/router/src/core/payments/flows/verfiy_flow.rs b/crates/router/src/core/payments/flows/verify_flow.rssimilarity index 100%rename from crates/router/src/core/payments/flows/verfiy_flow.rsrename to crates/router/src/core/payments/flows/verify_flow.rsdiff --git a/crates/router/tests/connectors/coinbase.rs b/crates/router/tests/connectors/coinbase.rsindex 0bb8a87c35..809fa83b85 100644--- a/crates/router/tests/connectors/coinbase.rs+++ b/crates/router/tests/connectors/coinbase.rs@@ -129,7 +129,7 @@ async fn should_sync_authorized_payment() {assert_eq!(response.status, enums::AttemptStatus::Charged);}-// Synchronizes a unresovled(underpaid) transaction.+// Synchronizes a unresolved(underpaid) transaction.#[actix_web::test]async fn should_sync_unresolved_payment() {let response = CONNECTORdiff --git a/crates/router/tests/connectors/opennode.rs b/crates/router/tests/connectors/opennode.rsindex 20a3fde4b0..8382c9cc6d 100644--- a/crates/router/tests/connectors/opennode.rs+++ b/crates/router/tests/connectors/opennode.rs@@ -128,7 +128,7 @@ async fn should_sync_authorized_payment() {assert_eq!(response.status, enums::AttemptStatus::Charged);}-// Synchronizes a unresovled(underpaid) transaction.+// Synchronizes a unresolved(underpaid) transaction.#[actix_web::test]async fn should_sync_unresolved_payment() {let response = CONNECTORdiff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.jsonindex 9ad5ee7f48..ca09f8a22c 100644--- a/openapi/openapi_spec.json+++ b/openapi/openapi_spec.json@@ -1797,6 +1797,7 @@"type": "object","required": ["label",+ "type","amount"],"properties": {@@ -1806,8 +1807,7 @@},"type": {"type": "string",- "description": "A value that indicates whether the line item(Ex: total, tax, discount, or grand total) is final or pending.",- "nullable": true+ "description": "A value that indicates whether the line item(Ex: total, tax, discount, or grand total) is final or pending."},"amount": {"type": "string",@@ -1836,7 +1836,8 @@"currency_code","total","merchant_capabilities",- "supported_networks"+ "supported_networks",+ "merchant_identifier"],"properties": {"country_code": {@@ -1864,8 +1865,7 @@"description": "The list of supported networks"},"merchant_identifier": {- "type": "string",- "nullable": true+ "type": "string"}}},@@ -1873,24 +1873,72 @@"type": "object"},"ApplePaySessionResponse": {- "oneOf": [- {- "$ref": "#/components/schemas/ThirdPartySdkSessionResponse"+ "type": "object",+ "required": [+ "epoch_timestamp",+ "expires_at",+ "merchant_session_identifier",+ "nonce",+ "merchant_identifier",+ "domain_name",+ "display_name",+ "signature",+ "operational_analytics_identifier",+ "retries",+ "psp_id"+ ],+ "properties": {+ "epoch_timestamp": {+ "type": "integer",+ "format": "int64",+ "description": "Timestamp at which session is requested",+ "minimum": 0.0},- {- "allOf": [- {- "$ref": "#/components/schemas/NoThirdPartySdkSessionResponse"- }- ],- "nullable": true+ "expires_at": {+ "type": "integer",+ "format": "int64",+ "description": "Timestamp at which session expires",+ "minimum": 0.0},- {- "type": "object",- "default": null,- "nullable": true+ "merchant_session_identifier": {+ "type": "string",+ "description": "The identifier for the merchant session"+ },+ "nonce": {+ "type": "string",+ "description": "Apple pay generated unique ID (UUID) value"+ },+ "merchant_identifier": {+ "type": "string",+ "description": "The identifier for the merchant"+ },+ "domain_name": {+ "type": "string",+ "description": "The domain name of the merchant which is registered in Apple Pay"+ },+ "display_name": {+ "type": "string",+ "description": "The name to be displayed on Apple Pay button"+ },+ "signature": {+ "type": "string",+ "description": "A string which represents the properties of a payment"+ },+ "operational_analytics_identifier": {+ "type": "string",+ "description": "The identifier for the operational analytics"+ },+ "retries": {+ "type": "integer",+ "format": "int32",+ "description": "The number of retries to get the session response",+ "minimum": 0.0+ },+ "psp_id": {+ "type": "string",+ "description": "The identifier for the connector transaction"}- ]+ }},"ApplePayWalletData": {"type": "object",@@ -1939,32 +1987,18 @@"type": "object","required": ["session_token_data",- "connector",- "delayed_session_token",- "sdk_next_action"+ "payment_request_data",+ "connector"],"properties": {"session_token_data": {"$ref": "#/components/schemas/ApplePaySessionResponse"},"payment_request_data": {- "allOf": [- {- "$ref": "#/components/schemas/ApplePayPaymentRequest"- }- ],- "nullable": true+ "$ref": "#/components/schemas/ApplePayPaymentRequest"},"connector": {- "type": "string",- "description": "The session token is w.r.t this connector"- },- "delayed_session_token": {- "type": "boolean",- "description": "Identifier for the delayed session response"- },- "sdk_next_action": {- "$ref": "#/components/schemas/SdkNextAction"+ "type": "string"}}},@@ -5296,14 +5330,6 @@"MobilePayRedirection": {"type": "object"},- "NextActionCall": {- "type": "string",- "enum": [- "confirm",- "sync",- "session_token"- ]- },"NextActionData": {"oneOf": [{@@ -5359,74 +5385,6 @@"display_bank_transfer_information"]},- "NoThirdPartySdkSessionResponse": {- "type": "object",- "required": [- "epoch_timestamp",- "expires_at",- "merchant_session_identifier",- "nonce",- "merchant_identifier",- "domain_name",- "display_name",- "signature",- "operational_analytics_identifier",- "retries",- "psp_id"- ],- "properties": {- "epoch_timestamp": {- "type": "integer",- "format": "int64",- "description": "Timestamp at which session is requested",- "minimum": 0.0- },- "expires_at": {- "type": "integer",- "format": "int64",- "description": "Timestamp at which session expires",- "minimum": 0.0- },- "merchant_session_identifier": {- "type": "string",- "description": "The identifier for the merchant session"- },- "nonce": {- "type": "string",- "description": "Apple pay generated unique ID (UUID) value"- },- "merchant_identifier": {- "type": "string",- "description": "The identifier for the merchant"- },- "domain_name": {- "type": "string",- "description": "The domain name of the merchant which is registered in Apple Pay"- },- "display_name": {- "type": "string",- "description": "The name to be displayed on Apple Pay button"- },- "signature": {- "type": "string",- "description": "A string which represents the properties of a payment"- },- "operational_analytics_identifier": {- "type": "string",- "description": "The identifier for the operational analytics"- },- "retries": {- "type": "integer",- "format": "int32",- "description": "The number of retries to get the session response",- "minimum": 0.0- },- "psp_id": {- "type": "string",- "description": "The identifier for the connector transaction"- }- }- },"OnlineMandate": {"type": "object","required": [@@ -6229,25 +6187,19 @@"PaymentsCreateRequest": {"type": "object","required": [- "currency","manual_retry",+ "currency","amount"],"properties": {- "currency": {+ "payment_method_data": {"allOf": [{- "$ref": "#/components/schemas/Currency"+ "$ref": "#/components/schemas/PaymentMethodData"}],"nullable": true},- "description": {- "type": "string",- "description": "A description of the payment",- "example": "It's my first payment request",- "nullable": true- },"capture_method": {"allOf": [{@@ -6256,127 +6208,105 @@],"nullable": true},- "statement_descriptor_suffix": {+ "customer_id": {"type": "string",- "description": "Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.",- "example": "Payment for shoes purchase",+ "description": "The identifier for the customer object. If not provided the customer ID will be autogenerated.",+ "example": "cus_y3oqhf46pyzuxjbcn2giaqnb44","nullable": true,"maxLength": 255},- "metadata": {+ "payment_method": {"allOf": [{- "$ref": "#/components/schemas/Metadata"+ "$ref": "#/components/schemas/PaymentMethod"}],"nullable": true},- "payment_method": {+ "confirm": {+ "type": "boolean",+ "description": "Whether to confirm the payment (if applicable)",+ "default": false,+ "example": true,+ "nullable": true+ },+ "shipping": {"allOf": [{- "$ref": "#/components/schemas/PaymentMethod"+ "$ref": "#/components/schemas/Address"}],"nullable": true},- "email": {- "type": "string",- "description": "description: The customer's email address",- "example": "[email protected]",- "nullable": true,- "maxLength": 255- },- "customer_id": {+ "payment_id": {"type": "string",- "description": "The identifier for the customer object. If not provided the customer ID will be autogenerated.",- "example": "cus_y3oqhf46pyzuxjbcn2giaqnb44",+ "description": "Unique identifier for the payment. This ensures idempotency for multiple payments\nthat have been done by a single merchant. This field is auto generated and is returned in the API response.",+ "example": "pay_mbabizu24mvu3mela5njyhpit4","nullable": true,- "maxLength": 255- },- "card_cvc": {- "type": "string",- "description": "This is used when payment is to be confirmed and the card is not saved",- "nullable": true+ "maxLength": 30,+ "minLength": 30},- "business_country": {+ "payment_method_type": {"allOf": [{- "$ref": "#/components/schemas/CountryAlpha2"+ "$ref": "#/components/schemas/PaymentMethodType"}],"nullable": true},- "browser_info": {- "type": "object",- "description": "Additional details required by 3DS 2.0",- "nullable": true- },- "routing": {+ "payment_experience": {"allOf": [{- "$ref": "#/components/schemas/RoutingAlgorithm"+ "$ref": "#/components/schemas/PaymentExperience"}],"nullable": true},- "merchant_id": {+ "payment_token": {"type": "string",- "description": "This is an identifier for the merchant account. This is inferred from the API key\nprovided during the request",- "example": "merchant_1668273825",- "nullable": true,- "maxLength": 255+ "description": "Provide a reference to a stored payment method",+ "example": "187282ab-40ef-47a9-9206-5099ba31e432",+ "nullable": true},- "shipping": {+ "authentication_type": {"allOf": [{- "$ref": "#/components/schemas/Address"+ "$ref": "#/components/schemas/AuthenticationType"}],"nullable": true},- "payment_token": {- "type": "string",- "description": "Provide a reference to a stored payment method",- "example": "187282ab-40ef-47a9-9206-5099ba31e432",+ "routing": {+ "allOf": [+ {+ "$ref": "#/components/schemas/RoutingAlgorithm"+ }+ ],"nullable": true},- "allowed_payment_method_types": {- "type": "array",- "items": {- "$ref": "#/components/schemas/PaymentMethodType"- },- "description": "Allowed Payment Method Types for a given PaymentIntent",+ "business_country": {+ "allOf": [+ {+ "$ref": "#/components/schemas/CountryAlpha2"+ }+ ],"nullable": true},"manual_retry": {"type": "boolean","description": "If enabled payment can be retried from the client side until the payment is successful or payment expires or the attempts(configured by the merchant) for payment are exhausted."},- "payment_id": {- "type": "string",- "description": "Unique identifier for the payment. This ensures idempotency for multiple payments\nthat have been done by a single merchant. This field is auto generated and is returned in the API response.",- "example": "pay_mbabizu24mvu3mela5njyhpit4",- "nullable": true,- "maxLength": 30,- "minLength": 30- },- "business_sub_label": {+ "capture_on": {"type": "string",- "description": "Business sub label for the payment",+ "format": "date-time",+ "description": "A timestamp (ISO 8601 code) that determines when the payment should be captured.\nProviding this field will automatically set `capture` to true",+ "example": "2022-09-10T10:11:12Z","nullable": true},- "amount": {- "type": "integer",- "format": "int64",- "description": "The payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,",- "example": 6540,- "nullable": true,- "minimum": 0.0- },- "statement_descriptor_name": {+ "statement_descriptor_suffix": {"type": "string",- "description": "For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.",- "example": "Hyperswitch Router",+ "description": "Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.",+ "example": "Payment for shoes purchase","nullable": true,"maxLength": 255},@@ -6388,55 +6318,70 @@],"nullable": true},- "billing": {+ "business_sub_label": {+ "type": "string",+ "description": "Business sub label for the payment",+ "nullable": true+ },+ "email": {+ "type": "string",+ "description": "description: The customer's email address",+ "example": "[email protected]",+ "nullable": true,+ "maxLength": 255+ },+ "setup_future_usage": {"allOf": [{- "$ref": "#/components/schemas/Address"+ "$ref": "#/components/schemas/FutureUsage"}],"nullable": true},- "capture_on": {- "type": "string",- "format": "date-time",- "description": "A timestamp (ISO 8601 code) that determines when the payment should be captured.\nProviding this field will automatically set `capture` to true",- "example": "2022-09-10T10:11:12Z",- "nullable": true- },- "confirm": {- "type": "boolean",- "description": "Whether to confirm the payment (if applicable)",- "default": false,- "example": true,+ "allowed_payment_method_types": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/PaymentMethodType"+ },+ "description": "Allowed Payment Method Types for a given PaymentIntent","nullable": true},- "client_secret": {- "type": "string",- "description": "It's a token used for client side verification.",- "example": "pay_U42c409qyHwOkWo3vK60_secret_el9ksDkiB8hi6j9N78yo",+ "currency": {+ "allOf": [+ {+ "$ref": "#/components/schemas/Currency"+ }+ ],"nullable": true},- "mandate_data": {+ "billing": {"allOf": [{- "$ref": "#/components/schemas/MandateData"+ "$ref": "#/components/schemas/Address"}],"nullable": true},- "mandate_id": {+ "phone_country_code": {"type": "string",- "description": "A unique identifier to link the payment to a mandate, can be use instead of payment_method_data",- "example": "mandate_iwer89rnjef349dni3",+ "description": "The country code for the customer phone number",+ "example": "+1","nullable": true,"maxLength": 255},- "business_label": {+ "return_url": {"type": "string",- "description": "Business label of the merchant for this payment",- "example": "food",+ "description": "The URL to redirect after the completion of the operation",+ "example": "https://hyperswitch.io","nullable": true},+ "statement_descriptor_name": {+ "type": "string",+ "description": "For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.",+ "example": "Hyperswitch Router",+ "nullable": true,+ "maxLength": 255+ },"name": {"type": "string","description": "description: The customer's name",@@ -6444,26 +6389,36 @@"nullable": true,"maxLength": 255},- "connector": {- "type": "array",- "items": {- "$ref": "#/components/schemas/Connector"- },- "description": "This allows the merchant to manually select a connector with which the payment can go through",- "example": [- "stripe",- "adyen"- ],+ "amount": {+ "type": "integer",+ "format": "int64",+ "description": "The payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,",+ "example": 6540,+ "nullable": true,+ "minimum": 0.0+ },+ "amount_to_capture": {+ "type": "integer",+ "format": "int64",+ "description": "The Amount to be captured/ debited from the users payment method. It shall be in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,\nIf not provided, the default amount_to_capture will be the payment amount.",+ "example": 6540,"nullable": true},- "authentication_type": {+ "metadata": {"allOf": [{- "$ref": "#/components/schemas/AuthenticationType"+ "$ref": "#/components/schemas/Metadata"}],"nullable": true},+ "merchant_id": {+ "type": "string",+ "description": "This is an identifier for the merchant account. This is inferred from the API key\nprovided during the request",+ "example": "merchant_1668273825",+ "nullable": true,+ "maxLength": 255+ },"phone": {"type": "string","description": "The customer's phone number",@@ -6471,56 +6426,47 @@"nullable": true,"maxLength": 255},- "amount_to_capture": {- "type": "integer",- "format": "int64",- "description": "The Amount to be captured/ debited from the users payment method. It shall be in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,\nIf not provided, the default amount_to_capture will be the payment amount.",- "example": 6540,- "nullable": true- },- "return_url": {+ "client_secret": {"type": "string",- "description": "The URL to redirect after the completion of the operation",- "example": "https://hyperswitch.io",- "nullable": true- },- "setup_future_usage": {- "allOf": [- {- "$ref": "#/components/schemas/FutureUsage"- }- ],+ "description": "It's a token used for client side verification.",+ "example": "pay_U42c409qyHwOkWo3vK60_secret_el9ksDkiB8hi6j9N78yo","nullable": true},- "payment_method_data": {+ "mandate_data": {"allOf": [{- "$ref": "#/components/schemas/PaymentMethodData"+ "$ref": "#/components/schemas/MandateData"}],"nullable": true},- "phone_country_code": {+ "mandate_id": {"type": "string",- "description": "The country code for the customer phone number",- "example": "+1",+ "description": "A unique identifier to link the payment to a mandate, can be use instead of payment_method_data",+ "example": "mandate_iwer89rnjef349dni3","nullable": true,"maxLength": 255},- "payment_experience": {- "allOf": [- {- "$ref": "#/components/schemas/PaymentExperience"- }- ],+ "browser_info": {+ "type": "object",+ "description": "Additional details required by 3DS 2.0","nullable": true},- "payment_method_type": {- "allOf": [- {- "$ref": "#/components/schemas/PaymentMethodType"- }- ],+ "business_label": {+ "type": "string",+ "description": "Business label of the merchant for this payment",+ "example": "food",+ "nullable": true+ },+ "description": {+ "type": "string",+ "description": "A description of the payment",+ "example": "It's my first payment request",+ "nullable": true+ },+ "card_cvc": {+ "type": "string",+ "description": "This is used when payment is to be confirmed and the card is not saved","nullable": true},"off_session": {@@ -6528,6 +6474,18 @@"description": "Set to true to indicate that the customer is not in your checkout flow during this payment, and therefore is unable to authenticate. This parameter is intended for scenarios where you collect card details and charge them later. This parameter can only be used with `confirm: true`.","example": true,"nullable": true+ },+ "connector": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/Connector"+ },+ "description": "This allows the merchant to manually select a connector with which the payment can go through",+ "example": [+ "stripe",+ "adyen"+ ],+ "nullable": true}}},@@ -7210,11 +7168,6 @@}],"nullable": true- },- "delayed_session_token": {- "type": "boolean",- "description": "Identifier for the delayed session response",- "nullable": true}}},@@ -7680,32 +7633,6 @@],"example": "custom"},- "SdkNextAction": {- "type": "object",- "required": [- "next_action"- ],- "properties": {- "next_action": {- "$ref": "#/components/schemas/NextActionCall"- }- }- },- "SecretInfoToInitiateSdk": {- "type": "object",- "required": [- "display",- "payment"- ],- "properties": {- "display": {- "type": "string"- },- "payment": {- "type": "string"- }- }- },"SepaAndBacsBillingDetails": {"type": "object","required": [@@ -7842,17 +7769,6 @@"propertyName": "wallet_name"}},- "ThirdPartySdkSessionResponse": {- "type": "object",- "required": [- "secrets"- ],- "properties": {- "secrets": {- "$ref": "#/components/schemas/SecretInfoToInitiateSdk"- }- }- },"UpdateApiKeyRequest": {"type": "object","description": "The request body for updating an API Key.",