ladeiko / node-apple-receipt-verify

A Node.js module for In-App-Purchase receipt validation for iOS.
MIT License
92 stars 25 forks source link

User Subscriptions Cancel doesn't update the reciept #30

Closed AathifMahir closed 3 years ago

AathifMahir commented 3 years ago

Hi,

I was using this module with @types/node-apple-receipt-verify module to verify receipt on Firebase, Everything works fine except Subscriptions canceled by users don't update the receipt, you can see the complete code that i was using for Firebase functions in below github repo

https://github.com/flutter/codelabs/tree/master/in_app_purchases/complete/firebase-backend

This is the link to typescript conversion module that i was using: https://www.npmjs.com/package/@types/node-apple-receipt-verify

Tested on node-apple-receipt-verify 1.9.3 in IOS Sandbox account

ladeiko commented 3 years ago

What do you mean 'CANCEL' - autorenew or refund?

AathifMahir commented 3 years ago

@ladeiko Sorry, I mean Subscription Cancelled and Expired one's

ladeiko commented 3 years ago

What reaction do you expect from module?

AathifMahir commented 3 years ago

sorry, you don't need worry. this issue is from Apple instead of this Module, They don't seem to send the receipt as soon Subscriptions passes it's expired date, it takes around 2 hours minimum to receive the request to server @ladeiko

ladeiko commented 3 years ago

ok. so closing issue :)

AathifMahir commented 3 years ago

by the way, Does v1.9.3 to 1.10 is there any breaking changes? @ladeiko

ladeiko commented 3 years ago

no. just see https://github.com/ladeiko/node-apple-receipt-verify/blob/master/CHANGELOG.md

AathifMahir commented 3 years ago

no. just see https://github.com/ladeiko/node-apple-receipt-verify/blob/master/CHANGELOG.md

Thanks

ladeiko commented 3 years ago

you are welcome :)