Skip to content

Commit

Permalink
Add support for TWINT (#31)
Browse files Browse the repository at this point in the history
* Add support for TWINT

* Update pretix_mollie/payment.py

Co-authored-by: Raphael Michel <michel@rami.io>

---------

Co-authored-by: Raphael Michel <michel@rami.io>
  • Loading branch information
pc-coholic and raphaelm committed Mar 4, 2024
1 parent 35eccf7 commit f4637a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pretix_mollie/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ def settings_form_fields(self):
}
),
)),
('method_twint',
forms.BooleanField(
label=_('Twint'),
required=False,
disabled=self.event.currency != 'CHF',
)),
('method_klarnapaynow',
forms.BooleanField(
label=_('Klarna Pay now'),
Expand Down Expand Up @@ -1086,3 +1092,9 @@ class MollieIn3(MollieOrderMethod):
method = 'in3'
verbose_name = _('in3 it via Mollie')
public_name = _('in3')


class MollieTwint(MolliePaymentMethod):
method = 'twint'
verbose_name = _('TWINT via Mollie')
public_name = _('TWINT')
3 changes: 2 additions & 1 deletion pretix_mollie/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def register_payment_provider(sender, **kwargs):
MollieGiropay, MollieIdeal, MollieINGHomePay, MollieKBC,
MolliePaysafecard, MollieSofort, MolliePayPal, MollieApplePay,
MolliePrzelewy24, MollieIn3, MollieKlarnaPaynow, MollieKlarnaPaylater,
MollieKlarnaSliceit,
MollieKlarnaSliceit, MollieTwint
)

return [
Expand All @@ -48,6 +48,7 @@ def register_payment_provider(sender, **kwargs):
MollieKlarnaPaylater,
MollieKlarnaSliceit,
MollieIn3,
MollieTwint,
]


Expand Down

0 comments on commit f4637a7

Please sign in to comment.