mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Only mark apple pay domains as stored in live mode
This commit is contained in:
@@ -38,14 +38,15 @@ def stripe_verify_domain(event_id, domain):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
stripe.ApplePayDomain.create(
|
resp = stripe.ApplePayDomain.create(
|
||||||
domain_name=domain,
|
domain_name=domain,
|
||||||
**prov.api_kwargs
|
**prov.api_kwargs
|
||||||
)
|
)
|
||||||
except stripe.error.StripeError:
|
except stripe.error.StripeError:
|
||||||
logger.exception('Could not verify domain with Stripe')
|
logger.exception('Could not verify domain with Stripe')
|
||||||
else:
|
else:
|
||||||
RegisteredApplePayDomain.objects.create(
|
if resp.livemode:
|
||||||
domain=domain,
|
RegisteredApplePayDomain.objects.create(
|
||||||
account=account
|
domain=domain,
|
||||||
)
|
account=account
|
||||||
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user