subscription

Subscription sample missing JSON parsing of purchaseToken

不羁岁月 提交于 2019-12-04 09:04:06
I have been recently studying code for In-App-Billing v2. And have found some issues with it. I have earlier implemented In-App-Billing but wish to upgrade to subscription. On my research I found that Purchase token is recieved along with the JSON(Signed data) on successful purchase for subscription. The demo's Security.java on successful verification of signature parses Json however the parsing of element Purchase-token is missing here. JSONObject jElement = jTransactionsArray.getJSONObject(i); int response = jElement.getInt("purchaseState"); PurchaseState purchaseState = PurchaseState

Do auto-renewable subscriptions send an SKPaymentTransactionStatePurchased/Restored transaction when they auto-renew in test mode?

蹲街弑〆低调 提交于 2019-12-04 06:46:48
问题 I was looking to this thread. It's stated that the App Store calls the paymentQueue and posts a transaction with transaction.transactionState==SKPaymentTransactionStateRestored . But I'm not getting those calls. I'm testing with sandbox accounts/subscriptions, that expire and are auto-renewed every 3 minutes; WITHOUT verifying receipts. This way, my updatedTransaction method is never called after the first buy. Anyway, if I later on restore completed transactions, I get all the receipts. Any

Adding a Co-administrator via PowerShell

坚强是说给别人听的谎言 提交于 2019-12-04 04:24:37
问题 I know how to add a co-administrator via the portal, but need a way to add it via PowerShell. I need this method as I have lost access to the login id, but have the publish setting file so can administrator my virtual machines. 回答1: Unfortunately you can't. Azure PowerShell Cmdlets are essentially wrapper over Azure Service Management API and currently the API does not expose any method to add co-admins programmatically. 回答2: Azure have rolled out Roll Based Access Control which will allow

How to unsubscribe an iOS Device from an amazon SNS topic?

依然范特西╮ 提交于 2019-12-04 03:32:01
I'm developing an iOS application with Simple Notification Service (SNS) from Amazon Web Services. At this point the app registers the device to a Topic and can receive push notifications, which are published to the Topic. It is possible to subscribe a device to many Topics. Now I'm trying to unsubscribe a device from a specific Topic, but the SNSUnsubscribeRequest needs a SubscriptionARN. I've tried to use the EndpointARN from the device, but it seems I've to use an extra SubscriptionARN for the combination of EndpointARN and TopicARN. How do I get this ARN? In this post: How do you get the

Catching exceptions which may be thrown from a Subscription OnNext Action

走远了吗. 提交于 2019-12-04 00:34:44
问题 I'm somewhat new to Rx.NET. Is it possible to catch an exception which may be thrown by any of the subscribers? Take the following... handler.FooStream.Subscribe( _ => throw new Exception("Bar"), _ => { }); Currently I'm catching on a per subscription basis with an instance of the following. The implementation of which just uses a ManualResetEvent to wake up a waiting thread. public interface IExceptionCatcher { Action<T> Exec<T>(Action<T> action); } and using it like so... handler.FooStream

Android In-App Billing Subscription status change callbacks

∥☆過路亽.° 提交于 2019-12-03 12:25:27
问题 I'm writing an app that will support in-app subscriptions. The subscriptions will enable my users to use a number of services and benefits outside the Android world. I know that I can use Google Play Developer API to query the status of a subscription, but due to the nature of the offered services and benefits, it is not very convenient to do that. I was wondering if there is a way to get notified about the status of the subscription when it changes. Something like a web hook for example. 回答1

paypal verifying first payment or initamt was billed in recurring payment

左心房为你撑大大i 提交于 2019-12-03 10:38:41
问题 I want my users to be able to subscribe to a recurring payment (using the express checkout api) The first payment needs to be billed immediately that the user subscribes, and I need to know that they have been successfully billed before granting them access. Is there a straight forward way to do this? I've tried, creating a recurring payment profile with an INITAMT set, however, it's not clear that the user is being billed (when using the sandbox), and there is no txn_id (or the equivalent)

iOS In-App purchasing and subscriptions : Testing

独自空忆成欢 提交于 2019-12-03 10:17:34
问题 A college of mine has implemented iOS in-app purchasing on a auto-renewing monthly basis. I am taking over the code base and want to test it is working. I know the purchasing is wokring but the auto-renewing is what I am worried about. I have set up a test user and read the Apple documentation that says in sandbox mode, a month is 5 minutes in the sandbox. However I am not getting any post back from Apple after 5 minutes? should I? In the AppDelegate I have inAppPurchase = [TFInAppPurchase

Redis Cluster vs ZeroMQ in Pub/Sub, for horizontally scaled distributed systems

只愿长相守 提交于 2019-12-03 10:07:50
If I were to design a huge distributed system whose throughput should scale linearly with the number of subscribers and number of channels in the system, which would be better ? 1) Redis Cluster (only for Redis 3.0 alpha, if its in cluster mode, you can publish in one node and subscribe in another completely different node, and the messages will propagate and reach you). The complexity of Publish is O(N+M) , where N is the number of subscribed clients and M is the number of subscribed patterns in the system, but how does it scale when in a Redis Cluster ? I accept educated guesses on this. 2)

How to remove Subscription from product list in developer console and what will be its effect on the old subscribed users?

徘徊边缘 提交于 2019-12-03 06:06:43
问题 I want to remove the existing subscription product from product list. How would I be able to perform so as I didn't found any option on my developer console to delete the subscriptions ? Also if in any way possible it is allowed, then will it have any effect on the existing users who have purchased that subscription when they call for RESTORE_TRANSACTION from their app while communicating with Google Play ? 回答1: Unfortunately, It's not possible to remove a subscription product from the