From 91d3070989c76fda8b39919caacebc92bf471780 Mon Sep 17 00:00:00 2001 From: Maksym Koshovyi Date: Mon, 14 Feb 2022 06:25:49 +0200 Subject: [PATCH] Fix spelling --- docs/CheckAndRestorePurchases.md | 4 ++-- docs/HandlingExceptions.md | 2 +- docs/PurchaseConsumable.md | 4 ++-- docs/PurchaseSubscription.md | 6 +++--- docs/SecuringPurchases.md | 4 ++-- docs/TestingAndTroubleshooting.md | 2 +- src/Plugin.InAppBilling/CrossInAppBilling.shared.cs | 2 +- src/Plugin.InAppBilling/InAppBilling.android.cs | 4 ++-- src/Plugin.InAppBilling/InAppBilling.apple.cs | 4 ++-- src/Plugin.InAppBilling/Shared/BaseInAppBilling.shared.cs | 4 ++-- src/Plugin.InAppBilling/Shared/IInAppBilling.shared.cs | 6 +++--- .../Shared/InAppBillingProduct.shared.cs | 4 ++-- .../Shared/InAppBillingPurchase.shared.cs | 6 +++--- src/Plugin.InAppBilling/Shared/ItemType.shared.cs | 2 +- 14 files changed, 27 insertions(+), 27 deletions(-) diff --git a/docs/CheckAndRestorePurchases.md b/docs/CheckAndRestorePurchases.md index 2a964d4..3d1e283 100644 --- a/docs/CheckAndRestorePurchases.md +++ b/docs/CheckAndRestorePurchases.md @@ -3,7 +3,7 @@ When users get a new device or re-install your application it is best practice t ```csharp /// -/// Get all current purhcase for a specifiy product type. +/// Get all current purchases for a specified product type. /// /// Type of product /// The current purchases @@ -37,7 +37,7 @@ public async Task WasItemPurchased(string productId) var purchases = await billing.GetPurchasesAsync(ItemType.InAppPurchase, idsToNotFinish); - //check for null just incase + //check for null just in case if(purchases?.Any(p => p.ProductId == productId) ?? false) { //Purchase restored diff --git a/docs/HandlingExceptions.md b/docs/HandlingExceptions.md index 6129b0f..c3f1430 100644 --- a/docs/HandlingExceptions.md +++ b/docs/HandlingExceptions.md @@ -99,7 +99,7 @@ catch (InAppBillingPurchaseException purchaseEx) switch (purchaseEx.PurchaseError) { case PurchaseError.AppStoreUnavailable: - message = "Currently the app store seems to be unavailble. Try again later."; + message = "Currently the app store seems to be unavailable. Try again later."; break; case PurchaseError.BillingUnavailable: message = "Billing seems to be unavailable, please try again later."; diff --git a/docs/PurchaseConsumable.md b/docs/PurchaseConsumable.md index df6c10a..16d73b6 100644 --- a/docs/PurchaseConsumable.md +++ b/docs/PurchaseConsumable.md @@ -27,7 +27,7 @@ The reason for forcing you to consume is that some platforms will not receive th /// Specifies an optional obfuscated string that is uniquely associated with the user's account in your app. /// Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app. /// Purchase details -/// If an error occures during processing +/// If an error occurs during processing Task PurchaseAsync(string productId, ItemType itemType, IInAppBillingVerifyPurchase verifyPurchase = null, string obfuscatedAccountId = null, string obfuscatedProfileId = null); ``` @@ -39,7 +39,7 @@ Task PurchaseAsync(string productId, ItemType itemType, II /// Id or Sku of product /// Original Purchase Token /// If consumed successful -/// If an error occures during processing +/// If an error occurs during processing Task ConsumePurchaseAsync(string productId, string purchaseToken); ``` diff --git a/docs/PurchaseSubscription.md b/docs/PurchaseSubscription.md index e2bde04..91eb782 100644 --- a/docs/PurchaseSubscription.md +++ b/docs/PurchaseSubscription.md @@ -1,6 +1,6 @@ -## Purchase Subsription +## Purchase Subscription -Subscriptions are purchases that expire (or sometimes auto-renew) after a set perior of time. You should track when the subscription was purchased, when it expires, or read this information from the existing purchases. They follow the same work flow as a normal Non-Consumable. +Subscriptions are purchases that expire (or sometimes auto-renew) after a set period of time. You should track when the subscription was purchased, when it expires, or read this information from the existing purchases. They follow the same work flow as a normal Non-Consumable. Each app store calls them something slightly different: * Apple: Auto-Renewable and Non-Renewing Subscription @@ -19,7 +19,7 @@ All purchases go through the `PurchaseAsync` method and you must always `Connect /// Specifies an optional obfuscated string that is uniquely associated with the user's account in your app. /// Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app. /// Purchase details -/// If an error occures during processing +/// If an error occurs during processing Task PurchaseAsync(string productId, ItemType itemType, IInAppBillingVerifyPurchase verifyPurchase = null, string obfuscatedAccountId = null, string obfuscatedProfileId = null); ``` diff --git a/docs/SecuringPurchases.md b/docs/SecuringPurchases.md index fa525a6..3ba4492 100644 --- a/docs/SecuringPurchases.md +++ b/docs/SecuringPurchases.md @@ -57,7 +57,7 @@ try var purchase = await CrossInAppBilling.Current.PurchaseAsync(productId, ItemType.InAppPurchase, verify); if(purchase == null) { - //Not purchased, may also throw excpetion to catch + //Not purchased, may also throw exception to catch } else { @@ -87,7 +87,7 @@ The simplest and easiest (not necessarily the most secure) way is to do the foll * Take your public key and break into 3 parts * Run each through the helper XOR method: Plugin.InAppBilling.InAppBillingImplementation.InAppBillingSecurity.TransformString * Save each value out and put them in your app -* Implement the interface with this funcationality: +* Implement the interface with this functionality: ```csharp diff --git a/docs/TestingAndTroubleshooting.md b/docs/TestingAndTroubleshooting.md index f9848a6..cc6e257 100644 --- a/docs/TestingAndTroubleshooting.md +++ b/docs/TestingAndTroubleshooting.md @@ -41,7 +41,7 @@ You will not be able to test any StoreKit functionality until you have an iOS Pa ``` * You could use the static product IDs for testing, e.g. android.test.purchased, as described in [Androids Developer Documentation](https://developer.android.com/google/play/billing/billing_testing). -## Android Troubleshooing +## Android Troubleshooting * If you see "You need to sign into your google account". This most likely means that you don't have an items published and active for IAB * If you see "This version of the application is not configured for billing through Google Play": This means the versions number don't match or you don't have the app configured to sign correctly with your keystore. * If you see "The publisher cannot purchase this item": This means you are trying to buy it on your developer account, and that isn't allowed, you need a different account. diff --git a/src/Plugin.InAppBilling/CrossInAppBilling.shared.cs b/src/Plugin.InAppBilling/CrossInAppBilling.shared.cs index 50b1986..edd7275 100644 --- a/src/Plugin.InAppBilling/CrossInAppBilling.shared.cs +++ b/src/Plugin.InAppBilling/CrossInAppBilling.shared.cs @@ -3,7 +3,7 @@ namespace Plugin.InAppBilling { /// - /// Cross platform InAppBilling implemenations + /// Cross platform InAppBilling implementations /// public class CrossInAppBilling { diff --git a/src/Plugin.InAppBilling/InAppBilling.android.cs b/src/Plugin.InAppBilling/InAppBilling.android.cs index 3cd29f9..39951c6 100644 --- a/src/Plugin.InAppBilling/InAppBilling.android.cs +++ b/src/Plugin.InAppBilling/InAppBilling.android.cs @@ -39,7 +39,7 @@ public class InAppBillingImplementation : BaseInAppBilling Context Context => Android.App.Application.Context; /// - /// Default Constructor for In App Billing Implemenation on Android + /// Default Constructor for In App Billing Implementation on Android /// public InAppBillingImplementation() { @@ -118,7 +118,7 @@ public override Task DisconnectAsync() } catch (System.Exception ex) { - System.Diagnostics.Debug.WriteLine($"Unable to disconned: {ex.Message}"); + System.Diagnostics.Debug.WriteLine($"Unable to disconnect: {ex.Message}"); } return Task.CompletedTask; diff --git a/src/Plugin.InAppBilling/InAppBilling.apple.cs b/src/Plugin.InAppBilling/InAppBilling.apple.cs index 0055aea..7e5ba8a 100644 --- a/src/Plugin.InAppBilling/InAppBilling.apple.cs +++ b/src/Plugin.InAppBilling/InAppBilling.apple.cs @@ -403,13 +403,13 @@ public override string ReceiptData /// Id or Sku of product /// Original Purchase Token /// If consumed successful - /// If an error occures during processing + /// If an error occurs during processing public override Task ConsumePurchaseAsync(string productId, string purchaseToken) => FinishTransaction(purchaseToken); /// - /// Manually finish a trasaction + /// Manually finish a transaction /// /// /// diff --git a/src/Plugin.InAppBilling/Shared/BaseInAppBilling.shared.cs b/src/Plugin.InAppBilling/Shared/BaseInAppBilling.shared.cs index acf8516..dad3e9e 100644 --- a/src/Plugin.InAppBilling/Shared/BaseInAppBilling.shared.cs +++ b/src/Plugin.InAppBilling/Shared/BaseInAppBilling.shared.cs @@ -78,7 +78,7 @@ public virtual Task> GetPurchasesHistoryAsync( /// Specifies an optional obfuscated string that is uniquely associated with the user's account in your app. /// Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app. /// Purchase details - /// If an error occures during processing + /// If an error occurs during processing public abstract Task PurchaseAsync(string productId, ItemType itemType, string obfuscatedAccountId = null, string obfuscatedProfileId = null); /// @@ -96,7 +96,7 @@ public virtual Task> GetPurchasesHistoryAsync( /// Id or Sku of product /// Original Purchase Token /// If consumed successful - /// If an error occures during processing + /// If an error occurs during processing public abstract Task ConsumePurchaseAsync(string productId, string purchaseToken); /// diff --git a/src/Plugin.InAppBilling/Shared/IInAppBilling.shared.cs b/src/Plugin.InAppBilling/Shared/IInAppBilling.shared.cs index c97f2e1..49a200e 100644 --- a/src/Plugin.InAppBilling/Shared/IInAppBilling.shared.cs +++ b/src/Plugin.InAppBilling/Shared/IInAppBilling.shared.cs @@ -72,7 +72,7 @@ public interface IInAppBilling : IDisposable /// Android: Specifies an optional obfuscated string that is uniquely associated with the user's account in your app. /// Android: Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app. /// Purchase details - /// If an error occures during processing + /// If an error occurs during processing Task PurchaseAsync(string productId, ItemType itemType, string obfuscatedAccountId = null, string obfuscatedProfileId = null); /// @@ -82,7 +82,7 @@ public interface IInAppBilling : IDisposable /// Purchase token of original subscription (can not be null) /// Proration mode (1 - ImmediateWithTimeProration, 2 - ImmediateAndChargeProratedPrice, 3 - ImmediateWithoutProration, 4 - Deferred) /// Purchase details - /// If an error occures during processing + /// If an error occurs during processing Task UpgradePurchasedSubscriptionAsync(string newProductId, string purchaseTokenOfOriginalSubscription, SubscriptionProrationMode prorationMode = SubscriptionProrationMode.ImmediateWithTimeProration); /// @@ -91,7 +91,7 @@ public interface IInAppBilling : IDisposable /// Id or Sku of product /// Original Purchase Token /// If consumed successful - /// If an error occures during processing + /// If an error occurs during processing Task ConsumePurchaseAsync(string productId, string purchaseToken); /// diff --git a/src/Plugin.InAppBilling/Shared/InAppBillingProduct.shared.cs b/src/Plugin.InAppBilling/Shared/InAppBillingProduct.shared.cs index cf8c483..a4f24a8 100644 --- a/src/Plugin.InAppBilling/Shared/InAppBillingProduct.shared.cs +++ b/src/Plugin.InAppBilling/Shared/InAppBillingProduct.shared.cs @@ -118,7 +118,7 @@ public class InAppBillingProductAndroidExtras public string IntroductoryPricePeriod { get; set; } /// - /// Introductory price of the product in micor-units + /// Introductory price of the product in micro-units /// /// The introductory price. public Int64 MicrosIntroductoryPrice { get; set; } @@ -129,7 +129,7 @@ public class InAppBillingProductAndroidExtras public string OriginalPrice { get; set; } /// - /// Orginal price in micro-units, where 1,000,000, micro-units equal one unit of the currency + /// Original price in micro-units, where 1,000,000, micro-units equal one unit of the currency /// public long MicrosOriginalPriceAmount { get; set; } } diff --git a/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs b/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs index ac93e80..3a199ee 100644 --- a/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs +++ b/src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs @@ -32,7 +32,7 @@ public InAppBillingPurchase() public string Id { get; set; } /// - /// Trasaction date in UTC + /// Transaction date in UTC /// public DateTime TransactionDateUtc { get; set; } @@ -43,7 +43,7 @@ public InAppBillingPurchase() /// - /// Quanity of the purchases product + /// Quantity of the purchases product /// public int Quantity { get; set; } = 1; @@ -53,7 +53,7 @@ public InAppBillingPurchase() public IList ProductIds { get; set; } /// - /// Indicates whether the subscritpion renewes automatically. If true, the sub is active, else false the user has canceled. + /// Indicates whether the subscription renewed automatically. If true, the sub is active, else false the user has canceled. /// public bool AutoRenewing { get; set; } diff --git a/src/Plugin.InAppBilling/Shared/ItemType.shared.cs b/src/Plugin.InAppBilling/Shared/ItemType.shared.cs index f3bda48..b43c360 100644 --- a/src/Plugin.InAppBilling/Shared/ItemType.shared.cs +++ b/src/Plugin.InAppBilling/Shared/ItemType.shared.cs @@ -26,7 +26,7 @@ public enum ItemType } /// - /// Subcription proration mode + /// Subscription proration mode /// public enum SubscriptionProrationMode {