Skip to content

Commit

Permalink
Merge pull request #4 from kvbik/walletconnect-2.0
Browse files Browse the repository at this point in the history
javascript for dynamic select of network in the payment flow
  • Loading branch information
lassejaco authored Oct 3, 2023
2 parents 93541c3 + 66434df commit 52adc57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pretix_eth/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ def decode(self, s: str):
raise JSONDecodeError("Please supply integers or floats as values.", "aaabbb", 0)
return decoded


class EthereumPaymentForm(PaymentProviderForm):
class Media:
js = ('pretix_eth/eth_payment_form.js',)


class Ethereum(BasePaymentProvider):
identifier = "ethereum"
verbose_name = _("ETH or DAI")
Expand Down Expand Up @@ -240,7 +242,6 @@ def payment_form_fields(self):
forms.ChoiceField(
label=_("Payment currency"),
help_text=_("Select the currency you will use for payment."),
#widget=forms.RadioSelect,
choices=currency_type_choices,
initial="ETH",
),
Expand Down

0 comments on commit 52adc57

Please sign in to comment.