mirror of
https://github.com/pretix/pretix.git
synced 2025-12-05 21:32:28 +00:00
Compare commits
4 Commits
v2024.11.0
...
stripe_mob
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4da34d2977 | ||
|
|
2e6eb167e1 | ||
|
|
495bc3ecc9 | ||
|
|
8bb3a95ce6 |
@@ -152,7 +152,7 @@ logger = logging.getLogger('pretix.plugins.stripe')
|
||||
# - Link: ✓ (PaymentRequestButton)
|
||||
# - Cash App Pay: ✗
|
||||
# - PayPal: ✓ (No settings UI yet)
|
||||
# - MobilePay: ✗
|
||||
# - MobilePay: ✓
|
||||
# - Alipay: ✓
|
||||
# - WeChat Pay: ✓
|
||||
# - GrabPay: ✓
|
||||
@@ -494,6 +494,11 @@ class StripeSettingsHolder(BasePaymentProvider):
|
||||
# 'EUR', 'GBP', 'USD', 'CHF', 'CZK', 'DKK', 'NOK', 'PLN', 'SEK', 'AUD', 'CAD', 'HKD', 'NZD', 'SGD'
|
||||
# ]
|
||||
# )),
|
||||
('method_mobilepay',
|
||||
forms.BooleanField(
|
||||
label=_('MobilePay'),
|
||||
disabled=self.event.currency not in ['DKK', 'EUR', 'NOK', 'SEK'],
|
||||
)),
|
||||
] + extra_fields + list(super().settings_form_fields.items()) + moto_settings
|
||||
)
|
||||
if not self.settings.connect_client_id or self.settings.secret_key:
|
||||
@@ -1853,3 +1858,21 @@ class StripeTwint(StripeRedirectMethod):
|
||||
"type": "twint",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
class StripeMobilePay(StripeRedirectMethod):
|
||||
identifier = 'stripe_mobilepay'
|
||||
verbose_name = 'MobilePay via Stripe'
|
||||
public_name = 'MobilePay'
|
||||
method = 'mobilepay'
|
||||
confirmation_method = 'automatic'
|
||||
explanation = _(
|
||||
'This payment method is available to MobilePay app users in Denmark and Finland. Please have your app ready.'
|
||||
)
|
||||
|
||||
def _payment_intent_kwargs(self, request, payment):
|
||||
return {
|
||||
"payment_method_data": {
|
||||
"type": "mobilepay",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -46,8 +46,8 @@ from pretix.presale.signals import html_head, process_response
|
||||
def register_payment_provider(sender, **kwargs):
|
||||
from .payment import (
|
||||
StripeAffirm, StripeAlipay, StripeBancontact, StripeCC, StripeEPS,
|
||||
StripeGiropay, StripeIdeal, StripeKlarna, StripeMultibanco,
|
||||
StripePayPal, StripePrzelewy24, StripeRevolutPay,
|
||||
StripeGiropay, StripeIdeal, StripeKlarna, StripeMobilePay,
|
||||
StripeMultibanco, StripePayPal, StripePrzelewy24, StripeRevolutPay,
|
||||
StripeSEPADirectDebit, StripeSettingsHolder, StripeSofort, StripeSwish,
|
||||
StripeTwint, StripeWeChatPay,
|
||||
)
|
||||
@@ -55,7 +55,7 @@ def register_payment_provider(sender, **kwargs):
|
||||
return [
|
||||
StripeSettingsHolder, StripeCC, StripeGiropay, StripeIdeal, StripeAlipay, StripeBancontact,
|
||||
StripeSofort, StripeEPS, StripeMultibanco, StripePrzelewy24, StripeRevolutPay, StripeWeChatPay,
|
||||
StripeSEPADirectDebit, StripeAffirm, StripeKlarna, StripePayPal, StripeSwish, StripeTwint,
|
||||
StripeSEPADirectDebit, StripeAffirm, StripeKlarna, StripePayPal, StripeSwish, StripeTwint, StripeMobilePay
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user