Skip to content

Commit

Permalink
Merge pull request #447 from maxkoshevoi/mk/spelling
Browse files Browse the repository at this point in the history
Fix spelling in comments and docs
  • Loading branch information
jamesmontemagno committed Feb 14, 2022
2 parents 09a3d01 + 91d3070 commit 2cb604b
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions docs/CheckAndRestorePurchases.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ When users get a new device or re-install your application it is best practice t

```csharp
/// <summary>
/// Get all current purhcase for a specifiy product type.
/// Get all current purchases for a specified product type.
/// </summary>
/// <param name="itemType">Type of product</param>
/// <returns>The current purchases</returns>
Expand Down Expand Up @@ -37,7 +37,7 @@ public async Task<bool> 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
Expand Down
2 changes: 1 addition & 1 deletion docs/HandlingExceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down
4 changes: 2 additions & 2 deletions docs/PurchaseConsumable.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The reason for forcing you to consume is that some platforms will not receive th
/// <param name="obfuscatedAccountId">Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.</param>
/// <param name="obfuscatedProfileId">Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.</param>
/// <returns>Purchase details</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType, IInAppBillingVerifyPurchase verifyPurchase = null, string obfuscatedAccountId = null, string obfuscatedProfileId = null);
```

Expand All @@ -39,7 +39,7 @@ Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType, II
/// <param name="productId">Id or Sku of product</param>
/// <param name="purchaseToken">Original Purchase Token</param>
/// <returns>If consumed successful</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
Task<InAppBillingPurchase> ConsumePurchaseAsync(string productId, string purchaseToken);
```

Expand Down
6 changes: 3 additions & 3 deletions docs/PurchaseSubscription.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -19,7 +19,7 @@ All purchases go through the `PurchaseAsync` method and you must always `Connect
/// <param name="obfuscatedAccountId">Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.</param>
/// <param name="obfuscatedProfileId">Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.</param>
/// <returns>Purchase details</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType, IInAppBillingVerifyPurchase verifyPurchase = null, string obfuscatedAccountId = null, string obfuscatedProfileId = null);
```

Expand Down
4 changes: 2 additions & 2 deletions docs/SecuringPurchases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/TestingAndTroubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.InAppBilling/CrossInAppBilling.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Plugin.InAppBilling
{
/// <summary>
/// Cross platform InAppBilling implemenations
/// Cross platform InAppBilling implementations
/// </summary>
public class CrossInAppBilling
{
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin.InAppBilling/InAppBilling.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class InAppBillingImplementation : BaseInAppBilling
Context Context => Android.App.Application.Context;

/// <summary>
/// Default Constructor for In App Billing Implemenation on Android
/// Default Constructor for In App Billing Implementation on Android
/// </summary>
public InAppBillingImplementation()
{
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin.InAppBilling/InAppBilling.apple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,13 @@ public override string ReceiptData
/// <param name="productId">Id or Sku of product</param>
/// <param name="purchaseToken">Original Purchase Token</param>
/// <returns>If consumed successful</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
public override Task<bool> ConsumePurchaseAsync(string productId, string purchaseToken) =>
FinishTransaction(purchaseToken);


/// <summary>
/// Manually finish a trasaction
/// Manually finish a transaction
/// </summary>
/// <param name="purchase"></param>
/// <returns></returns>
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin.InAppBilling/Shared/BaseInAppBilling.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public abstract class BaseInAppBilling : IInAppBilling, IDisposable
/// <param name="obfuscatedAccountId">Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.</param>
/// <param name="obfuscatedProfileId">Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.</param>
/// <returns>Purchase details</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
public abstract Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType, string obfuscatedAccountId = null, string obfuscatedProfileId = null);

/// <summary>
Expand All @@ -96,7 +96,7 @@ public abstract class BaseInAppBilling : IInAppBilling, IDisposable
/// <param name="productId">Id or Sku of product</param>
/// <param name="purchaseToken">Original Purchase Token</param>
/// <returns>If consumed successful</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
public abstract Task<bool> ConsumePurchaseAsync(string productId, string purchaseToken);

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin.InAppBilling/Shared/IInAppBilling.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public interface IInAppBilling : IDisposable
/// <param name="obfuscatedAccountId">Android: Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.</param>
/// <param name="obfuscatedProfileId">Android: Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.</param>
/// <returns>Purchase details</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
Task<InAppBillingPurchase> PurchaseAsync(string productId, ItemType itemType, string obfuscatedAccountId = null, string obfuscatedProfileId = null);

/// <summary>
Expand All @@ -82,7 +82,7 @@ public interface IInAppBilling : IDisposable
/// <param name="purchaseTokenOfOriginalSubscription">Purchase token of original subscription (can not be null)</param>
/// <param name="prorationMode">Proration mode (1 - ImmediateWithTimeProration, 2 - ImmediateAndChargeProratedPrice, 3 - ImmediateWithoutProration, 4 - Deferred)</param>
/// <returns>Purchase details</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
Task<InAppBillingPurchase> UpgradePurchasedSubscriptionAsync(string newProductId, string purchaseTokenOfOriginalSubscription, SubscriptionProrationMode prorationMode = SubscriptionProrationMode.ImmediateWithTimeProration);

/// <summary>
Expand All @@ -91,7 +91,7 @@ public interface IInAppBilling : IDisposable
/// <param name="productId">Id or Sku of product</param>
/// <param name="purchaseToken">Original Purchase Token</param>
/// <returns>If consumed successful</returns>
/// <exception cref="InAppBillingPurchaseException">If an error occures during processing</exception>
/// <exception cref="InAppBillingPurchaseException">If an error occurs during processing</exception>
Task<bool> ConsumePurchaseAsync(string productId, string purchaseToken);

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin.InAppBilling/Shared/InAppBillingProduct.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class InAppBillingProductAndroidExtras
public string IntroductoryPricePeriod { get; set; }

/// <summary>
/// Introductory price of the product in micor-units
/// Introductory price of the product in micro-units
/// </summary>
/// <value>The introductory price.</value>
public Int64 MicrosIntroductoryPrice { get; set; }
Expand All @@ -129,7 +129,7 @@ public class InAppBillingProductAndroidExtras
public string OriginalPrice { get; set; }

/// <summary>
/// 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
/// </summary>
public long MicrosOriginalPriceAmount { get; set; }
}
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin.InAppBilling/Shared/InAppBillingPurchase.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public InAppBillingPurchase()
public string Id { get; set; }

/// <summary>
/// Trasaction date in UTC
/// Transaction date in UTC
/// </summary>
public DateTime TransactionDateUtc { get; set; }

Expand All @@ -43,7 +43,7 @@ public InAppBillingPurchase()


/// <summary>
/// Quanity of the purchases product
/// Quantity of the purchases product
/// </summary>
public int Quantity { get; set; } = 1;

Expand All @@ -53,7 +53,7 @@ public InAppBillingPurchase()
public IList<string> ProductIds { get; set; }

/// <summary>
/// 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.
/// </summary>
public bool AutoRenewing { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin.InAppBilling/Shared/ItemType.shared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum ItemType
}

/// <summary>
/// Subcription proration mode
/// Subscription proration mode
/// </summary>
public enum SubscriptionProrationMode
{
Expand Down

0 comments on commit 2cb604b

Please sign in to comment.