mirror of
https://github.com/pretix/pretix.git
synced 2025-12-16 15:02:28 +00:00
Compare commits
4 Commits
fix-widget
...
stripe_mob
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4da34d2977 | ||
|
|
2e6eb167e1 | ||
|
|
495bc3ecc9 | ||
|
|
8bb3a95ce6 |
@@ -152,7 +152,7 @@ logger = logging.getLogger('pretix.plugins.stripe')
|
|||||||
# - Link: ✓ (PaymentRequestButton)
|
# - Link: ✓ (PaymentRequestButton)
|
||||||
# - Cash App Pay: ✗
|
# - Cash App Pay: ✗
|
||||||
# - PayPal: ✓ (No settings UI yet)
|
# - PayPal: ✓ (No settings UI yet)
|
||||||
# - MobilePay: ✗
|
# - MobilePay: ✓
|
||||||
# - Alipay: ✓
|
# - Alipay: ✓
|
||||||
# - WeChat Pay: ✓
|
# - WeChat Pay: ✓
|
||||||
# - GrabPay: ✓
|
# - GrabPay: ✓
|
||||||
@@ -494,6 +494,11 @@ class StripeSettingsHolder(BasePaymentProvider):
|
|||||||
# 'EUR', 'GBP', 'USD', 'CHF', 'CZK', 'DKK', 'NOK', 'PLN', 'SEK', 'AUD', 'CAD', 'HKD', 'NZD', 'SGD'
|
# '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
|
] + extra_fields + list(super().settings_form_fields.items()) + moto_settings
|
||||||
)
|
)
|
||||||
if not self.settings.connect_client_id or self.settings.secret_key:
|
if not self.settings.connect_client_id or self.settings.secret_key:
|
||||||
@@ -1853,3 +1858,21 @@ class StripeTwint(StripeRedirectMethod):
|
|||||||
"type": "twint",
|
"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):
|
def register_payment_provider(sender, **kwargs):
|
||||||
from .payment import (
|
from .payment import (
|
||||||
StripeAffirm, StripeAlipay, StripeBancontact, StripeCC, StripeEPS,
|
StripeAffirm, StripeAlipay, StripeBancontact, StripeCC, StripeEPS,
|
||||||
StripeGiropay, StripeIdeal, StripeKlarna, StripeMultibanco,
|
StripeGiropay, StripeIdeal, StripeKlarna, StripeMobilePay,
|
||||||
StripePayPal, StripePrzelewy24, StripeRevolutPay,
|
StripeMultibanco, StripePayPal, StripePrzelewy24, StripeRevolutPay,
|
||||||
StripeSEPADirectDebit, StripeSettingsHolder, StripeSofort, StripeSwish,
|
StripeSEPADirectDebit, StripeSettingsHolder, StripeSofort, StripeSwish,
|
||||||
StripeTwint, StripeWeChatPay,
|
StripeTwint, StripeWeChatPay,
|
||||||
)
|
)
|
||||||
@@ -55,7 +55,7 @@ def register_payment_provider(sender, **kwargs):
|
|||||||
return [
|
return [
|
||||||
StripeSettingsHolder, StripeCC, StripeGiropay, StripeIdeal, StripeAlipay, StripeBancontact,
|
StripeSettingsHolder, StripeCC, StripeGiropay, StripeIdeal, StripeAlipay, StripeBancontact,
|
||||||
StripeSofort, StripeEPS, StripeMultibanco, StripePrzelewy24, StripeRevolutPay, StripeWeChatPay,
|
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