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

feat(vsaas): enable creating v2 merchant accounts in platform organization (#8823)

Sandeep Kumarecd7366d7b65
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rs
index 6fb6b9a3b7..c116f266df 100644
--- a/crates/router/src/core/admin.rs
+++ b/crates/router/src/core/admin.rs
@@ -714,17 +714,8 @@ impl MerchantAccountCreateBridge for api::MerchantAccountCreate {
.create_or_validate(db)
.await?;
- let merchant_account_type = match organization.get_organization_type() {
- OrganizationType::Standard => MerchantAccountType::Standard,
- // Blocking v2 merchant account create for platform
- OrganizationType::Platform => {
- return Err(errors::ApiErrorResponse::InvalidRequestData {
- message: "Merchant account creation is not allowed for a platform organization"
- .to_string(),
- }
- .into())
- }
- };
+ // V2 currently supports creation of Standard merchant accounts only, irrespective of organization type
+ let merchant_account_type = MerchantAccountType::Standard;
let key = key_store.key.into_inner();
let id = identifier.to_owned();