Fix #1749 -- Stripe: Rewrite for Payment Methods and Payment Intents (#2494)

Co-authored-by: Raphael Michel <michel@rami.io>
Co-authored-by: Raphael Michel <mail@raphaelmichel.de>
This commit is contained in:
Martin Gross
2023-07-21 13:19:24 +02:00
committed by GitHub
parent 19e1d132c2
commit b134f29cf6
12 changed files with 585 additions and 137 deletions

View File

@@ -0,0 +1,22 @@
# Generated by Django 3.2.2 on 2021-12-08 14:07
from django.core.cache import cache
from django.db import migrations
def cleanup(app, schema_editor):
EventSettingsStore = app.get_model('pretixbase', 'Event_SettingsStore')
for setting in EventSettingsStore.objects.filter(key='payment_stripe_method_cc'):
setting.key = 'payment_stripe_method_card'
cache.delete('hierarkey_{}_{}'.format('event', setting.object_id))
setting.save()
class Migration(migrations.Migration):
dependencies = [
('stripe', '0003_registeredapplepaydomain'),
]
operations = [
migrations.RunPython(cleanup, migrations.RunPython.noop)
]