Skip to content

Commit ecd7366

Browse files
authored
feat(vsaas): enable creating v2 merchant accounts in platform organization (#8823)
1 parent 00b792d commit ecd7366

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

crates/router/src/core/admin.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -714,17 +714,8 @@ impl MerchantAccountCreateBridge for api::MerchantAccountCreate {
714714
.create_or_validate(db)
715715
.await?;
716716

717-
let merchant_account_type = match organization.get_organization_type() {
718-
OrganizationType::Standard => MerchantAccountType::Standard,
719-
// Blocking v2 merchant account create for platform
720-
OrganizationType::Platform => {
721-
return Err(errors::ApiErrorResponse::InvalidRequestData {
722-
message: "Merchant account creation is not allowed for a platform organization"
723-
.to_string(),
724-
}
725-
.into())
726-
}
727-
};
717+
// V2 currently supports creation of Standard merchant accounts only, irrespective of organization type
718+
let merchant_account_type = MerchantAccountType::Standard;
728719

729720
let key = key_store.key.into_inner();
730721
let id = identifier.to_owned();

0 commit comments

Comments
 (0)