Giter VIP home page Giter VIP logo

Comments (7)

voltrue2 avatar voltrue2 commented on May 20, 2024 5

I have implemented this in develop branch I will be running more tests before merging it to master and publish on npm

from in-app-purchase.

voltrue2 avatar voltrue2 commented on May 20, 2024

Hello

Thank you for reaching out!

Would you mind sharing the property that needs to be checked for this so I can implement it?

Cheers

On Aug 9, 2016, 21:39 +0900, Florian Lettner [email protected], wrote:

If a subscription is cancelled by the user or if the payment process fails a cancellation date is added to the receipt by the apple server. This flag is currently not checked by your implementation. So the module will return false when calling isExpired() even though the receipt was cancelled and is no longer valid.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#61), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACKY4WduBRhR-9mU1PzbBo74xEPiKB6yks5qeHUZgaJpZM4JgB8P).

from in-app-purchase.

Ltty avatar Ltty commented on May 20, 2024

Here's the explanation taken from Apple's web site:

Cancellation

A subscription is paid for in full when it’s purchased and can be refunded only by contacting Apple customer service. For example, if the user accidentally buys the wrong product, customer support can cancel the subscription and issue a refund. It’s not possible for customers to change their mind in the middle of a subscription period and decide they don’t want to pay for the rest of the subscription.

To check whether a purchase has been canceled, look for the Cancellation Date field in the receipt. If the field has a date in it, regardless of the subscription’s expiration date, the purchase has been canceled—treat a canceled receipt the same as if no purchase had ever been made.

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html

The field is named cancellation_date

from in-app-purchase.

voltrue2 avatar voltrue2 commented on May 20, 2024

Awesome!
Thank you. I'll implement this as soon as I get a chance.

Cheers

On Aug 9, 2016, 21:47 +0900, Florian Lettner [email protected], wrote:

Here's the explanation taken from Apple's web site:

Cancellation

A subscription is paid for in full when it’s purchased and can be refunded only by contacting Apple customer service. For example, if the user accidentally buys the wrong product, customer support can cancel the subscription and issue a refund. It’s not possible for customers to change their mind in the middle of a subscription period and decide they don’t want to pay for the rest of the subscription.

To check whether a purchase has been canceled, look for the Cancellation Date field in the receipt. If the field has a date in it, regardless of the subscription’s expiration date, the purchase has been canceled—treat a canceled receipt the same as if no purchase had ever been made.

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html

The field is named cancellation_date


You are receiving this because you commented.
Reply to this email directly, view it on GitHub (#61 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/ACKY4RLK5EvhDHE1XCcDFAIr-RYiADpVks5qeHb9gaJpZM4JgB8P).

from in-app-purchase.

jshanman avatar jshanman commented on May 20, 2024

Any update on returning apple cancellation_date field? I see it referenced in the apple.js file but it does not appear to be used at all.

from in-app-purchase.

voltrue2 avatar voltrue2 commented on May 20, 2024

Hello

My apologies for the long wait.
I'll be looking into this shortly.

Cheers

from in-app-purchase.

voltrue2 avatar voltrue2 commented on May 20, 2024

cancellation_date field is now being read by the module.

Closing

from in-app-purchase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.