mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
PPv2: Only transmit the user's main language without any possible "-informal"-tags
This commit is contained in:
@@ -553,7 +553,7 @@ class PaypalMethod(BasePaymentProvider):
|
||||
# 'shipping': {}, # Include Shipping information?
|
||||
}],
|
||||
'application_context': {
|
||||
'locale': request.LANGUAGE_CODE,
|
||||
'locale': request.LANGUAGE_CODE.split('-')[0],
|
||||
'shipping_preference': 'NO_SHIPPING', # 'SET_PROVIDED_ADDRESS', # Do not set on non-ship order?
|
||||
'user_action': 'CONTINUE',
|
||||
'return_url': build_absolute_uri(request.event, 'plugins:paypal2:return', kwargs=kwargs),
|
||||
|
||||
Reference in New Issue
Block a user