File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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." )
You can’t perform that action at this time.
0 commit comments