File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -714,17 +714,8 @@ impl MerchantAccountCreateBridge for api::MerchantAccountCreate {
714
714
. create_or_validate ( db)
715
715
. await ?;
716
716
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 ;
728
719
729
720
let key = key_store. key . into_inner ( ) ;
730
721
let id = identifier. to_owned ( ) ;
You can’t perform that action at this time.
0 commit comments