-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purchased items have incorrect information #89
Comments
I moved the plugin into my project and debugged the code. In the function ToIABPurchase you have the statement
For whatever odd reason, the OriginalTransaction.TransactionDate is always returning the same date of 9/12/2017 6:09:17 PM. However, if I don't go to the original transaction, but stay with the root transaction, the correct date and time are stored. In ToIABPurchase I changed the line:
to: and it now works correctly. Because you already return prior to this assignment if p is null, then this should work fine. Intuitively, I would have thought that the date held in the OriginalTransaction structure would be the date the transaction originally occurred, but unfortunately it is not. Curious to hear your thoughts on the matter. Best Regards, Edward |
If you send a PR down that will help me debug it. |
Hello,
I’ve never done a PR before, so I hope that this one is right…. Let me know if I made any mistakes or left out pertinent information.
Best Regards,
Edward
… On 4 Dec 2017, at 02:07, James Montemagno ***@***.***> wrote:
If you send a PR down that will help me debug it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#89 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACfhXvaxwiWX_Nykwh6N2AyyBNfLcn74ks5s80XJgaJpZM4QB80V>.
|
Downloaded code and fixed issue. |
@EdwardCaulfield You can find the instructions to send a pull request here https://help.github.com/articles/creating-a-pull-request/ :) |
Thanks for the info. I will have a look this weekend.
Best Regards,
Edward Caulfield
http://www.ar-intelligence.info/
+41 76 281 1960
If you're not progressing, you're regressing;
This email and any files transmitted with it may contain confidential and/or legally protected information. They are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender and delete it immediately, considering its dissemination, distribution or copying being strictly prohibited.
… On 19 Dec 2017, at 11:10, Prashant Cholachagudda ***@***.***> wrote:
@EdwardCaulfield <https://github.com/edwardcaulfield> You can find the instructions to send a pull request here https://help.github.com/articles/creating-a-pull-request/ <https://help.github.com/articles/creating-a-pull-request/>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#89 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACfhXrYw6la-J5jxF_uxc2JNDZa36VrSks5tB4uugaJpZM4QB80V>.
|
I integrated into latest |
If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.
Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.
Bug Information
Version Number of Plugin: 1.2.3.107
Device Tested On: iPhone 5, iOS 11.0.3
Simulator Tested On:
Version of VS: 7.2 (build 636)
Version of Xamarin:
Versions of other things you are using:
SkiSharp 1.59.1
Xam.Plugins.Settings 3.1.1
Xamarin.Google.iOS.MobileAds 7.21.0
Steps to reproduce the Behavior
Purchase newly created subscription once
Expected Behavior
Call to GetPurchasesAsync returns only one purchase of subscription item with correct purchase date and time
Actual Behavior
Calls to GetPurchasesAsync return sometimes 6, sometimes 7 instances of purchase with the date September 12, 2017 at 6:09:17 PM. However, the item was created on October 22, 2017 and purchased once on October 22, 2017.
It is noteworthy that the date September 12, 2017 is the date that another subscription item, 005_Advanced_Features, was actually purchased. This item shows sometimes 51, sometimes 52 successful purchases with the date September 12, 2017 at 6:09:17 PM.
The product '005_Advanced_Features' has been bought 51 times
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
Purchased 005_Advanced_Features on 9/12/2017 6:09:17 PM
The product '00_Subscription_Testing' has been bought 6 times
Purchased 00_Subscription_Testing on 9/12/2017 6:09:17 PM
Purchased 00_Subscription_Testing on 9/12/2017 6:09:17 PM
Purchased 00_Subscription_Testing on 9/12/2017 6:09:17 PM
Purchased 00_Subscription_Testing on 9/12/2017 6:09:17 PM
Purchased 00_Subscription_Testing on 9/12/2017 6:09:17 PM
Purchased 00_Subscription_Testing on 9/12/2017 6:09:17 PM
I have rebooted my development system, removed the App and rebooted my iPhone, but always get the same results.
Code snippet
Screenshots
The text was updated successfully, but these errors were encountered: