Comments (7)
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.
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.
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.
The field is named cancellation_date
from in-app-purchase.
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.
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.
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.
Hello
My apologies for the long wait.
I'll be looking into this shortly.
Cheers
from in-app-purchase.
cancellation_date field is now being read by the module.
Closing
from in-app-purchase.
Related Issues (20)
- Empty array returned from purchaseData HOT 1
- Is project alive? HOT 9
- [Security] Improper Key Verification on package `xml-crypto`
- Payment successful but library showing it as canceled. HOT 1
- Note: Always set ignoreCanceled: true for Apple, otherwise you might reject valid purchases (this is not obvious from current documentation!) HOT 2
- Facebook api v3.3 will be deprecated in August
- Error: Functions did not deploy properly with Firebase Cloud functions HOT 1
- Setup for Google Play store HOT 3
- How do you get the Receipt Info for In app purchases
- Getting 'Failed to validate purchase' on all my receipt data for Android HOT 5
- Invalid Purchase Token HOT 3
- Google API URL being resolved incorrectly for subscriptions HOT 1
- Status is always 0 for android in test mode HOT 1
- Apple: support App Store Server Notifications V2 HOT 2
- No expirationDate in validated subscription? HOT 1
- Google subscription and refresh token issue
- Subscription taking time occurs issue
- "Unknown" error occures in taking subscription
- Lib not giving base plan info for the new google play subscription structure
- error apple IAP 21003 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from in-app-purchase.