forked from CGM_Public/pretix_original
Stripe: Add PayPal (#4049) (Z#23123667)
This commit is contained in:
@@ -149,7 +149,7 @@ logger = logging.getLogger('pretix.plugins.stripe')
|
|||||||
# - Secure Remote Commerce: ✗
|
# - Secure Remote Commerce: ✗
|
||||||
# - Link: ✓ (PaymentRequestButton)
|
# - Link: ✓ (PaymentRequestButton)
|
||||||
# - Cash App Pay: ✗
|
# - Cash App Pay: ✗
|
||||||
# - PayPal: ✗
|
# - PayPal: ✓ (No settings UI yet)
|
||||||
# - MobilePay: ✗
|
# - MobilePay: ✗
|
||||||
# - Alipay: ✓
|
# - Alipay: ✓
|
||||||
# - WeChat Pay: ✓
|
# - WeChat Pay: ✓
|
||||||
@@ -468,6 +468,14 @@ class StripeSettingsHolder(BasePaymentProvider):
|
|||||||
]),
|
]),
|
||||||
required=False,
|
required=False,
|
||||||
)),
|
)),
|
||||||
|
# Disabled for now, since we still need to figure out how to make this work on our connect platform
|
||||||
|
# ('method_paypal',
|
||||||
|
# forms.BooleanField(
|
||||||
|
# label=_('PayPal'),
|
||||||
|
# disabled=self.event.currency not in [
|
||||||
|
# 'EUR', 'GBP', 'USD', 'CHF', 'CZK', 'DKK', 'NOK', 'PLN', 'SEK', 'AUD', 'CAD', 'HKD', 'NZD', 'SGD'
|
||||||
|
# ]
|
||||||
|
# )),
|
||||||
] + 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:
|
||||||
@@ -1892,3 +1900,10 @@ class StripeWeChatPay(StripeRedirectMethod):
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
class StripePayPal(StripeRedirectMethod):
|
||||||
|
identifier = 'stripe_paypal'
|
||||||
|
verbose_name = _('PayPal via Stripe')
|
||||||
|
public_name = _('PayPal')
|
||||||
|
method = 'paypal'
|
||||||
|
|||||||
@@ -47,14 +47,14 @@ 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, StripeMultibanco,
|
||||||
StripePrzelewy24, StripeSEPADirectDebit, StripeSettingsHolder,
|
StripePayPal, StripePrzelewy24, StripeSEPADirectDebit,
|
||||||
StripeSofort, StripeWeChatPay,
|
StripeSettingsHolder, StripeSofort, StripeWeChatPay,
|
||||||
)
|
)
|
||||||
|
|
||||||
return [
|
return [
|
||||||
StripeSettingsHolder, StripeCC, StripeGiropay, StripeIdeal, StripeAlipay, StripeBancontact,
|
StripeSettingsHolder, StripeCC, StripeGiropay, StripeIdeal, StripeAlipay, StripeBancontact,
|
||||||
StripeSofort, StripeEPS, StripeMultibanco, StripePrzelewy24, StripeWeChatPay,
|
StripeSofort, StripeEPS, StripeMultibanco, StripePrzelewy24, StripeWeChatPay,
|
||||||
StripeSEPADirectDebit, StripeAffirm, StripeKlarna,
|
StripeSEPADirectDebit, StripeAffirm, StripeKlarna, StripePayPal,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user