InApp monthly subscriptions in BB 10 - blackberry

I am new to Blackberry 10 cascades. In my current app I need to make InApp subscriptions. I am unaware of how to achive this BB 10.
But I have Integrated the BB 10 Payment Service sample from the link https://developer.blackberry.c... to my current working App. I have also tested the payment in both Testing and Production mode by invoking
PaymentManager::setConnectionMode(PaymentConnectionMode::Test);
PaymentManager::setConnectionMode(PaymentConnectionMode:: Production);
function call from main.cpp.
and It is working fine.
now my question are
How to make In app Subscriptions for monthly renewals for BB 10 ? Does the same code work? Do I need to change any thing in my cuurent Integrated code?
Curently I am Invoking from the QML,
Button {
text: qsTr("InAPP") + Retranslate.onLanguageChanged
verticalAlignment: VerticalAlignment.Bottom
horizontalAlignment: HorizontalAlignment.Center
onClicked: {
paymentControl.sku = "ABCD XYZ"
paymentControl.getPrice(paymentControl.sku)
paymentControl.purchase(paymentControl.sku)
}
}
If Subscriptions for monthly renewals are done how the merchant knows about his/her monthly renewals automatically. Is there any Purchase Status API (for Android ) like API for BB 10 also.
Does BB 10 app gets a notification /Intimation about renewals from the RIM/ BlackBerry World to BB 10 App?

Related

Receiving monthly subscription amount on website instead on iOS app ( without using IAP )

Currently I am working on implementing a universal iOS app, which features basic and premium subscriptions. A user can signup and subscribe using website console. Some of the features in iOS app are applicable to premium subscribed user. In case of basic subscribed user tries to access those features we showing an alert saying "Please subscribe to premium subscription". Other than this no where we are providing external links in the app. This iOS app will be a paid application.
I have few querys related to this iOS app.
Does Apple allow to collect the subscription amount out side the iOS app ( without using IAP ) like I mentioned above?
In future if we include signup functionality in iOS app and collecting subscription amount using external payment gateways ( without using IAP ). Does Apple allow to do this?
Apple will reject all apps that use third party payment methods. Check out this post: https://stackoverflow.com/questions/12566671/ios-app-does-apple-allow-3rd-party-payments-inside-app

2 in app purchases module in one application in iOS

I have 2 in-app-purchase in my iOS application which is developed using phone gap.
I am using inappPurchaseManager.js for implementing in-app-purchase.
https://github.com/usmart/InAppPurchaseManager-EXAMPLE
1st in app is non-consumable and second one is non-renewing in-app.
in case of restoring the in-app purchase,I used the following code.
window.plugins.inAppPurchaseManager.restoreCompletedTransactions();
window.plugins.inAppPurchaseManager.onRestored = function(originalTransactionIdentifier, productId, originalTransactionReceipt) {
console.log("originalTransactionIdentifier: " + originalTransactionIdentifier);
console.log("productId: " + productId);
console.log("originalTransactionReceipt : " + originalTransactionReceipt)
};
but though I have bought 1st and 2nd in-app, This function will only return 1st in-app product name.I don't know that whether I am understanding this code or process wrong.Please give me proper guidelines.I am using apple test account for testing this functionality.
This is the correct behavior, quote from apple docs:
If your app uses non-renewing subscriptions, your app is responsible for the restoration process.

Unlock feature after buying from website in iOS app

I have a question on in app purchase
I have a requirement like user can get the premium account from in app purchase in the app to extend usage of the the existing functionality. The same feature can be brought from the website by logging into his account in web. If user buys the product from web and does login in the iPhone app, are we suppose to unlock this feature in iPhone? Apple doesn't say abut these kind of flows in their docs.
Since the premium account is a subscription based product like purhasing for 1 month or 1 year and not auto renewal. User has to buy the premium service once it expires.
So is my server has to maintain status like is logged in user is premium user or not?
Thanks
It depends on what the content is - in the guidelines doc - look at 11.14. Approved content is OK if pruchased outside the app (magazines, newspapers, books, audio, music, video and cloud storage) and you can purchase this content inside the app (apple will take their cut)
What you can't do is link to a website to purchase
Check out Apps like Kindle and Comixology

How to provide a test period within non-renewing subscriptions in ios

Good day,
I faced with an interesting problem:
I provide 1, 3, 5 and 7-days free test period for an application, according to the task, that user have done. For example, if a person first authorized through fb account, he has test week to try full functionality.
The problem is that I:
Can't do it without in-app purchase (11.1, 11.2)
Can't use subscription for less than a week (11.6: Content subscriptions using IAP must last a minimum of 7 days and be available to the user from all of their iOS devices)
Can't use non-renewing subscription without money
Can you propose, what type of in-app purchase should I use?

Launch Add-on for iphone app

I am currently developing an iphone application that will be sold for a fixed amount (say $X). As part of the future plan for the application, i would like to launch an Add-on for the application ( say $Y). What i want is that users who have already paid $X should be only charged $Y when they purchase the Add-on and new users purchase it for $(X+Y). Is it possible to launch paid Add-ons for the application independently. Any other ideas how to go about this process?
No, this is not possible. There is no way to determine what price a user purchased an iPhone application at -- all buyers are treated equally.
As has been mentioned, there is no such thing as an 'add-on'.
What you would have to do is implement in-app purchasing in the second version of your app. Once the user updated their app to the new version they would then have the facility to buy this new functionality from within the app. When people buy something through the in-app purchase, you can either download the new content from a server or you can use conditional statements to enable this content.

Resources