|
|
|
|
@ -278,7 +278,7 @@ class PaymentService: |
|
|
|
|
team_registration.confirm_registration(payment_intent_id) |
|
|
|
|
return True |
|
|
|
|
|
|
|
|
|
def process_refund(self, team_registration_id): |
|
|
|
|
def process_refund(self, team_registration_id, force_refund=False): |
|
|
|
|
""" |
|
|
|
|
Process a refund for a tournament registration as part of unregistration |
|
|
|
|
Returns a tuple (success, message) |
|
|
|
|
@ -291,7 +291,7 @@ class PaymentService: |
|
|
|
|
tournament = team_registration.tournament |
|
|
|
|
|
|
|
|
|
# Check if refund is possible for this tournament |
|
|
|
|
if not tournament.is_refund_possible(): |
|
|
|
|
if not tournament.is_refund_possible() and force_refund == False: |
|
|
|
|
return False, "Les remboursements ne sont plus possibles pour ce tournoi.", None |
|
|
|
|
|
|
|
|
|
# Get payment ID from player registrations |
|
|
|
|
|