Skip to content

Commit 2386c5a

Browse files
authored
fix: log error when Apple issues refund for cores (#3282)
1 parent 05a4940 commit 2386c5a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/routes/webhooks/apple.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,16 @@ const handleNotifcationRequest = async (
147147
// No action needed for refund declined on consumables
148148
break;
149149
case NotificationTypeV2.REFUND: // TODO: Handle refunds for consumables if needed - since it is Apple who decides if a refund is given, we may need to revoke the consumable
150+
logger.error(
151+
{
152+
transactionInfo,
153+
user,
154+
environment,
155+
provider: SubscriptionProvider.AppleStoreKit,
156+
},
157+
'Apple issued refund',
158+
);
159+
break;
150160
default:
151161
throw new Error('Unsupported Apple Consumable notification type');
152162
}

0 commit comments

Comments
 (0)