diff --git a/src/pretix/plugins/stripe/views.py b/src/pretix/plugins/stripe/views.py index f96f284a7b..fce2c4bbc7 100644 --- a/src/pretix/plugins/stripe/views.py +++ b/src/pretix/plugins/stripe/views.py @@ -165,9 +165,15 @@ def oauth_return(request, *args, **kwargs): event.settings.payment_stripe_connect_refresh_token = data['refresh_token'] event.settings.payment_stripe_connect_user_id = data['stripe_user_id'] event.settings.payment_stripe_merchant_country = account.get('country') - if account.get('business_name') or account.get('display_name') or account.get('email'): + if ( + account.get('business_profile', {}).get('name') + or account.get('settings', {}).get('dashboard', {}).get('display_name') + or account.get('email') + ): event.settings.payment_stripe_connect_user_name = ( - account.get('business_name') or account.get('display_name') or account.get('email') + account.get('business_profile', {}).get('name') + or account.get('settings', {}).get('dashboard', {}).get('display_name') + or account.get('email') ) if data['livemode']: