Server to server notification v2, is verify receipt mandatory ?

I have done my app backend server to listen to server subscription notification, but in somewhere in the apple documentations I read that you have to verify receipt for every notification received to my server, if I didn't the notification will be send many times in specific times .

is verify receipt mandatory for subscription notifications ?

Answered by App Store Commerce Engineer in 733301022

If you are using App Store Server notifications V2, it sends you signed data. Each of the signed JWS representations, signedPayloadsignedTransactionInfo, and signedRenewalInfo, have a JWS signature that you can validate on your server. Use the algorithm specified in the header’s alg parameter to validate the signature. There's no need to additionally verify it with another call to Apple servers.

For more information see:

Accepted Answer

If you are using App Store Server notifications V2, it sends you signed data. Each of the signed JWS representations, signedPayloadsignedTransactionInfo, and signedRenewalInfo, have a JWS signature that you can validate on your server. Use the algorithm specified in the header’s alg parameter to validate the signature. There's no need to additionally verify it with another call to Apple servers.

For more information see:

I’m unfamiliar with such guidance but with v2 server notifications there is no app receipt anyways but the transactions are signed so you can verify without needing to make a request to App Store Server API

Server to server notification v2, is verify receipt mandatory ?
 
 
Q