Inheritance Hierarchy
DeltaEngine.Platforms InAppPurchase
DeltaEngine.InAppPurchase.PayPal PayPalInAppPurchases
Namespace: DeltaEngine.InAppPurchase.PayPal
Assembly: DeltaEngine.InAppPurchase.PayPal (in DeltaEngine.InAppPurchase.PayPal.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The PayPalInAppPurchases type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PayPalInAppPurchases | Initializes a new instance of the PayPalInAppPurchases class |
Methods
Name | Description | |
---|---|---|
InvokeOnReceivedProductInformation | (Inherited from InAppPurchase.) | |
InvokeOnTransactionFinished | (Inherited from InAppPurchase.) | |
InvokeOnUserCanceled | (Inherited from InAppPurchase.) | |
PurchaseProductAsync | (Overrides InAppPurchase PurchaseProductAsync(ProductData).) | |
RequestProductInformationAsync | (Overrides InAppPurchase RequestProductInformationAsync( Int32 ).) |
Events
Name | Description | |
---|---|---|
OnReceivedProductInformation | (Inherited from InAppPurchase.) | |
OnTransactionFinished | (Inherited from InAppPurchase.) | |
OnUserCanceled | (Inherited from InAppPurchase.) |
Remarks
Examples
[Test] public void CreateInstance() { Assert.DoesNotThrow(() => GetPayPalInAppPurchases()); }
[Test] public void GeneratePaymentLink() { const string ExpectedLink = "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=" + "payments@example.com&lc=DE&item_name=testId¤cy_code=EUR&amount=1.99&bn=PP%2dDonationsBF"; var inAppPurchase = GetPayPalInAppPurchases(); Assert.AreEqual(inAppPurchase.GeneratePaymentLink(GetTestProductData()), ExpectedLink); }
[Test, Ignore] public void PurchaseProductOpenWebBrowser() { var inAppPurchase = GetPayPalInAppPurchases(); inAppPurchase.PurchaseProductAsync(GetTestProductData()); }
See Also