Skip to content

Commit 6989098

Browse files
committed
Disabling refunds
1 parent cdf075e commit 6989098

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

pretix_eth/payment.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -301,20 +301,4 @@ def payment_partial_refund_supported(self, payment: OrderPayment):
301301
return self.payment_refund_supported(payment)
302302

303303
def execute_refund(self, refund: OrderRefund):
304-
if refund.payment is None:
305-
raise Exception("Invariant: No payment associated with refund")
306-
307-
wallet_queryset = None # todo WalletAddress.objects.filter(order_payment=refund.payment)
308-
309-
#todo fix
310-
# if wallet_queryset.count() != 1:
311-
# raise Exception(
312-
# "Invariant: There is not assigned wallet address to this payment"
313-
# )
314-
# refund.info_data = {
315-
# "currency_type": refund.payment.info_data["currency_type"],
316-
# "amount": refund.payment.info_data["amount"],
317-
# "wallet_address": wallet_queryset.first().hex_address,
318-
# }
319-
320-
refund.save(update_fields=["info"])
304+
raise Exception("Refunds are disabled for this payment provider for private key security reasons.")

0 commit comments

Comments
 (0)