mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Restrict Payment Providers to Sales Channels (#1481)
* Allow to restrict payment providers to specific sales channels * Fix test * Add `payment_restrictions_supported`-property to SalesChannels
This commit is contained in:
committed by
Raphael Michel
parent
384e7f8fc1
commit
6896682dd1
@@ -359,6 +359,7 @@ class EventsTest(SoupTest):
|
||||
'payment_banktransfer__fee_abs': '12.23',
|
||||
'payment_banktransfer_bank_details_type': 'other',
|
||||
'payment_banktransfer_bank_details_0': 'Test',
|
||||
'payment_banktransfer__restrict_to_sales_channels': ['web'],
|
||||
})
|
||||
self.event1.settings.flush()
|
||||
assert self.event1.settings.get('payment_banktransfer__enabled', as_type=bool)
|
||||
|
||||
Reference in New Issue
Block a user