repo
stringclasses
4 values
file_path
stringlengths
6
193
extension
stringclasses
23 values
content
stringlengths
0
1.73M
token_count
int64
0
724k
__index_level_0__
int64
0
10.8k
hyperswitch
crates/hyperswitch_domain_models/src/errors.rs
.rs
pub mod api_error_response;
6
2,406
hyperswitch
crates/hyperswitch_domain_models/src/merchant_connector_account.rs
.rs
#[cfg(feature = "v2")] use std::collections::HashMap; #[cfg(feature = "v2")] use common_utils::transformers::ForeignTryFrom; use common_utils::{ crypto::Encryptable, date_time, encryption::Encryption, errors::{CustomResult, ValidationError}, ext_traits::ValueExt, id_type, pii, type_name, ty...
6,650
2,407
hyperswitch
crates/hyperswitch_domain_models/src/vault.rs
.rs
use api_models::payment_methods; use serde::{Deserialize, Serialize}; use crate::payment_method_data; #[derive(Debug, Deserialize, Serialize, Clone)] pub enum PaymentMethodVaultingData { Card(payment_methods::CardDetail), NetworkToken(payment_method_data::NetworkTokenDetails), } impl PaymentMethodVaultingDat...
362
2,408
hyperswitch
crates/hyperswitch_domain_models/src/payment_methods.rs
.rs
#[cfg(feature = "v2")] use api_models::payment_methods::PaymentMethodsData; // specific imports because of using the macro use common_enums::enums::MerchantStorageScheme; #[cfg(all(feature = "v2", feature = "payment_methods_v2"))] use common_utils::{crypto::Encryptable, encryption::Encryption, types::keymanager::ToEncr...
9,107
2,409
hyperswitch
crates/hyperswitch_domain_models/src/router_data_v2.rs
.rs
pub mod flow_common_types; use std::{marker::PhantomData, ops::Deref}; use common_utils::id_type; #[cfg(feature = "frm")] pub use flow_common_types::FrmFlowData; #[cfg(feature = "payouts")] pub use flow_common_types::PayoutFlowData; pub use flow_common_types::{ AccessTokenFlowData, DisputesFlowData, ExternalAuthe...
323
2,410
hyperswitch
crates/hyperswitch_domain_models/src/configs.rs
.rs
//! Configs interface use common_enums::ApplicationError; use masking::Secret; use router_derive; use serde::Deserialize; // struct Connectors #[allow(missing_docs, missing_debug_implementations)] #[derive(Debug, Deserialize, Clone, Default, router_derive::ConfigValidate)] #[serde(default)] pub struct Connectors { ...
1,614
2,411
hyperswitch
crates/hyperswitch_domain_models/src/business_profile.rs
.rs
use common_enums::enums as api_enums; use common_types::primitive_wrappers; use common_utils::{ crypto::{OptionalEncryptableName, OptionalEncryptableValue}, date_time, encryption::Encryption, errors::{CustomResult, ValidationError}, pii, type_name, types::keymanager, }; use diesel_models::busine...
16,007
2,412
hyperswitch
crates/hyperswitch_domain_models/src/card_testing_guard_data.rs
.rs
use serde::{self, Deserialize, Serialize}; #[derive(Clone, Serialize, Deserialize, Debug)] pub struct CardTestingGuardData { pub is_card_ip_blocking_enabled: bool, pub card_ip_blocking_cache_key: String, pub is_guest_user_card_blocking_enabled: bool, pub guest_user_card_blocking_cache_key: String, ...
100
2,413
hyperswitch
crates/hyperswitch_domain_models/src/payments/payment_intent.rs
.rs
#[cfg(feature = "v2")] use common_enums::RequestIncrementalAuthorization; #[cfg(feature = "v2")] use common_utils::errors::ParsingError; #[cfg(feature = "v2")] use common_utils::ext_traits::{Encode, ValueExt}; use common_utils::{ consts::{PAYMENTS_LIST_MAX_LIMIT_V1, PAYMENTS_LIST_MAX_LIMIT_V2}, crypto::Encrypta...
15,932
2,414
hyperswitch
crates/hyperswitch_domain_models/src/payments/payment_attempt.rs
.rs
#[cfg(all(feature = "v1", feature = "olap"))] use api_models::enums::Connector; use common_enums as storage_enums; use common_types::primitive_wrappers::{ ExtendedAuthorizationAppliedBool, RequestExtendedAuthorizationBool, }; #[cfg(feature = "v2")] use common_utils::{ crypto::Encryptable, encryption::Encryption...
20,590
2,415
hyperswitch
crates/hyperswitch_domain_models/src/errors/api_error_response.rs
.rs
use api_models::errors::types::Extra; use common_utils::errors::ErrorSwitch; use http::StatusCode; use crate::router_data; #[derive(Clone, Debug, serde::Serialize)] #[serde(rename_all = "snake_case")] pub enum ErrorType { InvalidRequestError, ObjectNotFound, RouterError, ProcessingError, BadGatewa...
9,782
2,416
hyperswitch
crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs
.rs
use common_utils::{pii, types::MinorUnit}; use crate::{ payment_address::PaymentAddress, payment_method_data::ApplePayFlow, router_data::{ AccessToken, ConnectorResponseData, PaymentMethodBalance, PaymentMethodToken, RecurringMandatePaymentData, }, }; #[derive(Debug, Clone)] pub struct...
1,308
2,417
hyperswitch
crates/hyperswitch_domain_models/src/payouts/payout_attempt.rs
.rs
use api_models::enums::PayoutConnectors; use common_enums as storage_enums; use common_utils::{ id_type, payout_method_utils, types::{UnifiedCode, UnifiedMessage}, }; use serde::{Deserialize, Serialize}; use storage_enums::MerchantStorageScheme; use time::PrimitiveDateTime; use super::payouts::Payouts; #[asyn...
1,713
2,418
hyperswitch
crates/hyperswitch_domain_models/src/payouts/payouts.rs
.rs
use common_enums as storage_enums; use common_utils::{id_type, pii, types::MinorUnit}; use serde::{Deserialize, Serialize}; use storage_enums::MerchantStorageScheme; use time::PrimitiveDateTime; use super::payout_attempt::PayoutAttempt; #[cfg(feature = "olap")] use super::PayoutFetchConstraints; #[async_trait::async_...
2,016
2,419
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/mandate_revoke.rs
.rs
#[derive(Clone, Debug)] pub struct MandateRevoke;
13
2,420
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/authentication.rs
.rs
#[derive(Debug, Clone)] pub struct PreAuthentication; #[derive(Debug, Clone)] pub struct PreAuthenticationVersionCall; #[derive(Debug, Clone)] pub struct Authentication; #[derive(Debug, Clone)] pub struct PostAuthentication;
45
2,421
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/access_token_auth.rs
.rs
#[derive(Clone, Debug)] pub struct AccessTokenAuth;
11
2,422
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/payments.rs
.rs
// Core related api layer. #[derive(Debug, Clone)] pub struct Authorize; #[derive(Debug, Clone)] pub struct AuthorizeSessionToken; #[derive(Debug, Clone)] pub struct CompleteAuthorize; #[derive(Debug, Clone)] pub struct Approve; // Used in gift cards balance check #[derive(Debug, Clone)] pub struct Balance; #[deri...
286
2,423
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs
.rs
use serde::Serialize; #[derive(Clone, Debug)] pub struct VerifyWebhookSource; #[derive(Debug, Clone, Serialize)] pub struct ConnectorMandateDetails { pub connector_mandate_id: masking::Secret<String>, } #[derive(Debug, Clone, Serialize)] pub struct ConnectorNetworkTxnId(masking::Secret<String>); impl ConnectorN...
127
2,424
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs
.rs
#[derive(Debug, Clone)] pub struct Accept; #[derive(Debug, Clone)] pub struct Evidence; #[derive(Debug, Clone)] pub struct Defend;
31
2,425
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs
.rs
#[derive(Debug, Clone)] pub struct BillingConnectorPaymentsSync; #[derive(Debug, Clone)] pub struct RecoveryRecordBack;
25
2,426
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/refunds.rs
.rs
#[derive(Debug, Clone)] pub struct Execute; #[derive(Debug, Clone)] pub struct RSync;
21
2,427
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/fraud_check.rs
.rs
#[derive(Debug, Clone)] pub struct Sale; #[derive(Debug, Clone)] pub struct Checkout; #[derive(Debug, Clone)] pub struct Transaction; #[derive(Debug, Clone)] pub struct Fulfillment; #[derive(Debug, Clone)] pub struct RecordReturn;
53
2,428
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/payouts.rs
.rs
#[derive(Debug, Clone)] pub struct PoCancel; #[derive(Debug, Clone)] pub struct PoCreate; #[derive(Debug, Clone)] pub struct PoEligibility; #[derive(Debug, Clone)] pub struct PoFulfill; #[derive(Debug, Clone)] pub struct PoQuote; #[derive(Debug, Clone)] pub struct PoRecipient; #[derive(Debug, Clone)] pub struct P...
92
2,429
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs
.rs
#[derive(Debug, Clone)] pub struct PreAuthenticate; #[derive(Debug, Clone)] pub struct PostAuthenticate; #[derive(Debug, Clone)] pub struct AuthenticationConfirmation; #[derive(Debug, Clone)] pub struct Authenticate;
43
2,430
hyperswitch
crates/hyperswitch_domain_models/src/router_flow_types/files.rs
.rs
#[derive(Debug, Clone)] pub struct Retrieve; #[derive(Debug, Clone)] pub struct Upload;
20
2,431
hyperswitch
crates/hyperswitch_domain_models/src/router_request_types/authentication.rs
.rs
use common_utils::{ext_traits::OptionExt, pii::Email}; use error_stack::{Report, ResultExt}; use serde::{Deserialize, Serialize}; use crate::{ address, errors::api_error_response::ApiErrorResponse, payment_method_data::{Card, PaymentMethodData}, router_request_types::BrowserInformation, }; #[derive(Cl...
1,208
2,432
hyperswitch
crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs
.rs
use common_enums::enums; #[derive(Debug, Clone)] pub struct BillingConnectorPaymentsSyncRequest { /// unique id for making billing connector psync call pub billing_connector_psync_id: String, } #[derive(Debug, Clone)] pub struct RevenueRecoveryRecordBackRequest { pub merchant_reference_id: common_utils::i...
141
2,433
hyperswitch
crates/hyperswitch_domain_models/src/router_request_types/fraud_check.rs
.rs
use api_models; use common_enums; use common_utils::{ events::{ApiEventMetric, ApiEventsType}, pii::Email, }; use diesel_models::types::OrderDetailsWithAmount; use masking::Secret; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; use crate::router_request_types; #[derive(Debug, Clone)] pub struct Fra...
1,354
2,434
hyperswitch
crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
.rs
use api_models::payments::DeviceChannel; use common_utils::types::MinorUnit; use masking::Secret; use time::PrimitiveDateTime; use crate::{address::Address, payment_method_data::PaymentMethodData}; #[derive(Clone, Debug)] pub struct UasPreAuthenticationRequestData { pub service_details: Option<CtpServiceDetails>,...
1,272
2,435
hyperswitch
crates/hyperswitch_domain_models/src/router_response_types/disputes.rs
.rs
#[derive(Default, Clone, Debug)] pub struct AcceptDisputeResponse { pub dispute_status: api_models::enums::DisputeStatus, pub connector_status: Option<String>, } #[derive(Default, Clone, Debug)] pub struct SubmitEvidenceResponse { pub dispute_status: api_models::enums::DisputeStatus, pub connector_stat...
146
2,436
hyperswitch
crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs
.rs
use common_utils::types::MinorUnit; use time::PrimitiveDateTime; #[derive(Debug, Clone, serde::Deserialize, serde::Serialize)] pub struct BillingConnectorPaymentsSyncResponse { /// transaction amount against invoice, accepted in minor unit. pub amount: MinorUnit, /// currency of the transaction pub curr...
357
2,437
hyperswitch
crates/hyperswitch_domain_models/src/router_response_types/fraud_check.rs
.rs
use serde::Serialize; use crate::router_response_types::ResponseId; #[derive(Debug, Clone, Serialize)] #[serde(untagged)] pub enum FraudCheckResponseData { TransactionResponse { resource_id: ResponseId, status: diesel_models::enums::FraudCheckStatus, connector_metadata: Option<serde_json::...
200
2,438
hyperswitch
crates/redis_interface/Cargo.toml
.toml
[package] name = "redis_interface" description = "A user-friendly interface to Redis" version = "0.1.0" edition.workspace = true rust-version.workspace = true readme = "README.md" license.workspace = true [features] multitenancy_fallback = [] [dependencies] error-stack = "0.4.1" fred = { version = "7.1.2", features =...
254
2,439
hyperswitch
crates/redis_interface/README.md
.md
# Redis Interface A user-friendly interface to Redis.
11
2,440
hyperswitch
crates/redis_interface/src/commands.rs
.rs
//! An interface to abstract the `fred` commands //! //! The folder provides generic functions for providing serialization //! and deserialization while calling redis. //! It also includes instruments to provide tracing. use std::fmt::Debug; use common_utils::{ errors::CustomResult, ext_traits::{AsyncExt, Byt...
7,940
2,441
hyperswitch
crates/redis_interface/src/types.rs
.rs
//! Data types and type conversions //! from `fred`'s internal data-types to custom data-types use common_utils::errors::CustomResult; use fred::types::RedisValue as FredRedisValue; use crate::{errors, RedisConnectionPool}; pub struct RedisValue { inner: FredRedisValue, } impl std::ops::Deref for RedisValue { ...
2,120
2,442
hyperswitch
crates/redis_interface/src/lib.rs
.rs
//! Intermediate module for encapsulate all the redis related functionality //! //! Provides structs to represent redis connection and all functions that redis provides and //! are used in the `router` crate. Abstractions for creating a new connection while also facilitating //! redis connection pool and configuration ...
1,838
2,443
hyperswitch
crates/redis_interface/src/errors.rs
.rs
//! Errors specific to this custom redis interface #[derive(Debug, thiserror::Error, PartialEq)] pub enum RedisError { #[error("Invalid Redis configuration: {0}")] InvalidConfiguration(String), #[error("Failed to set key value in Redis")] SetFailed, #[error("Failed to set key value in Redis. Duplic...
663
2,444
hyperswitch
crates/common_enums/Cargo.toml
.toml
[package] name = "common_enums" description = "Enums shared across the request/response types and database types" version = "0.1.0" edition.workspace = true rust-version.workspace = true readme = "README.md" license.workspace = true [features] dummy_connector = [] openapi = [] payouts = [] v2 = [] [dependencies] dies...
264
2,445
hyperswitch
crates/common_enums/README.md
.md
# Common Enums Enums shared across the request/response types and database types.
15
2,446
hyperswitch
crates/common_enums/src/enums.rs
.rs
mod accounts; mod payments; mod ui; use std::num::{ParseFloatError, TryFromIntError}; pub use accounts::MerchantProductType; pub use payments::ProductType; use serde::{Deserialize, Serialize}; pub use ui::*; use utoipa::ToSchema; pub use super::connector_enums::RoutableConnectors; #[doc(hidden)] pub mod diesel_export...
58,337
2,447
hyperswitch
crates/common_enums/src/transformers.rs
.rs
use std::fmt::{Display, Formatter}; use serde::{Deserialize, Serialize}; use crate::enums::{ AttemptStatus, Country, CountryAlpha2, CountryAlpha3, IntentStatus, PaymentMethod, PaymentMethodType, }; impl Display for NumericCountryCodeParseError { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { ...
27,496
2,448
hyperswitch
crates/common_enums/src/lib.rs
.rs
pub mod connector_enums; pub mod enums; pub mod transformers; pub use enums::*; pub use transformers::*;
22
2,449
hyperswitch
crates/common_enums/src/connector_enums.rs
.rs
use std::collections::HashSet; use utoipa::ToSchema; pub use super::enums::{PaymentMethod, PayoutType}; pub use crate::PaymentMethodType; #[derive( Clone, Copy, Debug, Eq, Hash, PartialEq, serde::Serialize, serde::Deserialize, strum::Display, strum::EnumString, strum::Enum...
6,289
2,450
hyperswitch
crates/common_enums/src/enums/ui.rs
.rs
use std::fmt; use serde::{de::Visitor, Deserialize, Deserializer, Serialize}; use utoipa::ToSchema; #[derive( Clone, Copy, Debug, Default, Eq, Hash, PartialEq, Serialize, Deserialize, strum::Display, strum::EnumString, ToSchema, )] #[router_derive::diesel_enum(storage_t...
880
2,451
hyperswitch
crates/common_enums/src/enums/payments.rs
.rs
use serde; use utoipa::ToSchema; #[derive(Debug, Default, Eq, PartialEq, serde::Deserialize, serde::Serialize, Clone, ToSchema)] #[serde(rename_all = "snake_case")] pub enum ProductType { #[default] Physical, Digital, Travel, Ride, Event, Accommodation, }
72
2,452
hyperswitch
crates/common_enums/src/enums/accounts.rs
.rs
use serde; use utoipa::ToSchema; #[derive( Copy, Default, Clone, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, strum::Display, strum::EnumString, ToSchema, Hash, )] #[router_derive::diesel_enum(storage_type = "text")] #[serde(rename_all = "snake_case")] #[st...
131
2,453
hyperswitch
crates/cards/Cargo.toml
.toml
[package] name = "cards" description = "Types to handle card masking and validation" version = "0.1.0" edition.workspace = true rust-version.workspace = true readme = "README.md" license.workspace = true [features] [dependencies] error-stack = "0.4.1" once_cell = "1.19.0" serde = { version = "1.0.197", features = ["d...
256
2,454
hyperswitch
crates/cards/README.md
.md
# Cards Types to handle card masking and validation.
11
2,455
hyperswitch
crates/cards/tests/basic.rs
.rs
#![allow(clippy::unwrap_used, clippy::expect_used)] use cards::{CardExpiration, CardExpirationMonth, CardExpirationYear, CardSecurityCode}; use common_utils::date_time; use masking::PeekInterface; #[test] fn test_card_security_code() { // no panic let valid_card_security_code = CardSecurityCode::try_from(1234...
864
2,456
hyperswitch
crates/cards/src/validate.rs
.rs
use std::{collections::HashMap, fmt, ops::Deref, str::FromStr}; use common_utils::errors::ValidationError; use error_stack::report; use masking::{PeekInterface, Strategy, StrongSecret, WithType}; use once_cell::sync::Lazy; use regex::Regex; #[cfg(not(target_arch = "wasm32"))] use router_env::{logger, which as router_e...
4,512
2,457
hyperswitch
crates/cards/src/lib.rs
.rs
pub mod validate; use std::ops::Deref; use common_utils::{date_time, errors}; use error_stack::report; use masking::{PeekInterface, StrongSecret}; use serde::{de, Deserialize, Serialize}; use time::{util::days_in_year_month, Date, Duration, PrimitiveDateTime, Time}; pub use crate::validate::{CardNumber, CardNumberStr...
1,370
2,458
hyperswitch
crates/euclid_wasm/Cargo.toml
.toml
[package] name = "euclid_wasm" description = "WASM bindings for Euclid DSL" version = "0.1.0" edition.workspace = true rust-version.workspace = true license.workspace = true [lib] crate-type = ["cdylib"] [features] default = ["payouts"] release = ["payouts"] dummy_connector = ["kgraph_utils/dummy_connector", "connect...
445
2,459
hyperswitch
crates/euclid_wasm/src/utils.rs
.rs
use wasm_bindgen::prelude::*; pub trait JsResultExt<T> { fn err_to_js(self) -> Result<T, JsValue>; } impl<T, E> JsResultExt<T> for Result<T, E> where E: serde::Serialize, { fn err_to_js(self) -> Result<T, JsValue> { match self { Ok(t) => Ok(t), Err(e) => Err(serde_wasm_bind...
108
2,460
hyperswitch
crates/euclid_wasm/src/types.rs
.rs
use euclid::frontend::dir::DirKeyKind; #[cfg(feature = "payouts")] use euclid::frontend::dir::PayoutDirKeyKind; use serde::Serialize; #[derive(Serialize, Clone)] pub struct Details<'a> { pub description: Option<&'a str>, pub kind: DirKeyKind, } #[cfg(feature = "payouts")] #[derive(Serialize, Clone)] pub struc...
119
2,461
hyperswitch
crates/euclid_wasm/src/lib.rs
.rs
#![allow(non_upper_case_globals)] mod types; mod utils; use std::{ collections::{HashMap, HashSet}, str::FromStr, }; use api_models::{ enums as api_model_enums, routing::ConnectorSelection, surcharge_decision_configs::SurchargeDecisionConfigs, }; use common_enums::RoutableConnectors; use connector_conf...
4,313
2,462
hyperswitch
postman/portman-config.json
.json
{ "version": 1.0, "globals": { "stripResponseExamples": true, "securityOverwrites": { "apiKey": { "key": "api-key", "value": "{{apiKey}}" } } }, "assignVariables": [ { "openApiOperationId": "createPayment...
18,245
2,463
hyperswitch
postman/README.md
.md
# Postman Collection This directory contains the Postman collection for all Hyperswitch supported connectors and this documentation talks about how to build the collection. ## Development of collections ### Prerequisites - [Postman](https://www.postman.com/downloads/) - Newman CLI fork from npm: npm install -g 'htt...
634
2,464
hyperswitch
postman/portman-cli.json
.json
{ "local": "openapi/open_api_spec.yaml", "output": "postman/collection.postman.json", "envFile": "postman//.env-portman.example", "portmanConfigFile": "postman/portman-config.json", "includeTests": true, "bundleContractTests": false, "syncPostman": false, "runNewman": false }
88
2,465
hyperswitch
postman/collection-json/cybersource.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
148,689
2,466
hyperswitch
postman/collection-json/multisafepay.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
35,244
2,467
hyperswitch
postman/collection-json/bankofamerica.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
35,489
2,468
hyperswitch
postman/collection-json/aci.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
99,731
2,469
hyperswitch
postman/collection-json/prophetpay.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
11,127
2,470
hyperswitch
postman/collection-json/paypal.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "const path = pm.request.url.toString();", "const isPostRequest = pm.request.method.toString() === \"POST\";", "const isPaymentCreation = path.match(/\\/payments$/) && isPostRequest;", "", ...
70,156
2,471
hyperswitch
postman/collection-json/bambora_3ds.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
15,146
2,472
hyperswitch
postman/collection-json/forte.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
50,076
2,473
hyperswitch
postman/collection-json/nmi.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
111,285
2,474
hyperswitch
postman/collection-json/trustpay.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
57,331
2,475
hyperswitch
postman/collection-json/datatrans.postman_collection.json
.json
{ "info": { "_postman_id": "600681c5-58d0-4009-b0ec-9c72b9fa14f9", "name": "Datatrans", "description": "## Get started\n\nJuspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes. \nYou c...
38,651
2,476
hyperswitch
postman/collection-json/authorizedotnet.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
69,383
2,477
hyperswitch
postman/collection-json/wise.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
9,717
2,478
hyperswitch
postman/collection-json/bambora.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
59,401
2,479
hyperswitch
postman/collection-json/globalpay.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
79,596
2,480
hyperswitch
postman/collection-json/users.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "" ], "type": "text/javascript" } } ], "item": [ {...
3,708
2,481
hyperswitch
postman/collection-json/adyen_uk.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "// Add appropriate profile_id for relevant requests", "const path = pm.request.url.toString();", "const isPostRequest = pm.request.method.toString() === \"POST\";", "const isPaymentCreation = ...
134,170
2,482
hyperswitch
postman/collection-json/checkout.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
126,090
2,483
hyperswitch
postman/collection-json/bluesnap.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
103,926
2,484
hyperswitch
postman/collection-json/powertranz.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
71,723
2,485
hyperswitch
postman/collection-json/volt.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
19,875
2,486
hyperswitch
postman/collection-json/airwallex.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
68,990
2,487
hyperswitch
postman/collection-json/braintree.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
35,871
2,488
hyperswitch
postman/collection-json/shift4.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
81,558
2,489
hyperswitch
postman/collection-json/payme.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
48,511
2,490
hyperswitch
postman/collection-json/mollie.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
43,968
2,491
hyperswitch
postman/collection-json/zsl.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
6,499
2,492
hyperswitch
postman/collection-json/rapyd.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
39,592
2,493
hyperswitch
postman/collection-json/stripe.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
233,333
2,494
hyperswitch
postman/collection-json/zen.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
31,553
2,495
hyperswitch
postman/collection-json/nexinets.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
76,760
2,496
hyperswitch
postman/collection-json/worldline.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
41,943
2,497
hyperswitch
postman/collection-json/nuvei.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
16,970
2,498
hyperswitch
postman/collection-json/hyperswitch.postman_collection.json
.json
{ "event": [ { "listen": "prerequest", "script": { "exec": [ "" ], "type": "text/javascript" } }, { "listen": "test", "script": { "exec": [ "// Set response object as internal variable", "let jsonData = {};", ...
151,369
2,499
hyperswitch
postman/collection-dir/payme/event.test.js
.js
// Set response object as internal variable let jsonData = {}; try { jsonData = pm.response.json(); } catch (e) {} // pm.collectionVariables - Set payment_id as variable for jsonData.payment_id if (jsonData?.payment_id) { pm.collectionVariables.set("payment_id", jsonData.payment_id); console.log("[LOG]::payment_...
101
2,500
hyperswitch
postman/collection-dir/payme/event.prerequest.js
.js
0
2,501
hyperswitch
postman/collection-dir/payme/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.json
.json
{ "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { ...
771
2,502
hyperswitch
postman/collection-dir/payme/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/event.test.js
.js
// Validate status 2xx pm.test("[POST]::/payments - Status code is 2xx", function () { pm.response.to.be.success; }); // Validate if response header has matching content-type pm.test("[POST]::/payments - Content-Type is application/json", function () { pm.expect(pm.response.headers.get("Content-Type")).to.include(...
492
2,503
hyperswitch
postman/collection-dir/payme/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/response.json
.json
[]
1
2,504
hyperswitch
postman/collection-dir/payme/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Cancel/request.json
.json
{ "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "options": { "raw": { "language": "json" } }, "raw_json_formatted": { ...
225
2,505