If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Payment Service

Reply
New Contributor
mousumikhatua
Posts: 4
Registered: ‎09-17-2013
My Device: Z10
My Carrier: Airtel

Z10 In App purchase | auto renewal from different devices

[ Edited ]

Hi,

 

We have implemented 30 days renewal subscription for the digital goods.

 

Issue Statement

The issue we are facing to use the subscribed digital goods from different Z10 devices that are registered with same blackberry ID.

 

Every time we install the app to different device, we had to purchase the item for each device while they are all using same blackberry ID.

 

Expected behavior 

Ideally we expect if we purchase the subscription from one device and install the app in other devices, we should be able to use the item without purchasing it again for each device.

 

 

Note : The app is live in the Blackberry Appworld, it's not in sandbox.

 

Please provide the solution for this issue.

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Z10 In App purchase | auto renewal from different devices

Hi there,

 

A couple preliminary questions:

1) Is the BBID being used listed as a sandbox user in the vendor portal?

2) How are you verifying this purchase from within the app?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
mousumikhatua
Posts: 4
Registered: ‎09-17-2013
My Device: Z10
My Carrier: Airtel

Re: Z10 In App purchase | auto renewal from different devices

Hi Garett,

 

Please find my answers -

 

1. yes, the BBID is listed as a sandbox user.

2. After purchase, whenever we launch app, we check it's subscription status by using m_paymentManager->requestExistingPurchases(false) and it correctly returns us the status. We checked the scenario when the subscription period gets over, that also working fine as long it's checked in same device.

 

 

Thanks,

Mousumi

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Z10 In App purchase | auto renewal from different devices

For #1. Sandbox purchases do not write a transaction to the BlackBerry World server, so you won't be able to "recover" any past purchases, they do not exist.

 

For #2, requestExistingPurchases(false) only checks the local cache for purchases. If moving to a new device then there would be no local cache, so you need to also use requestExistingPurchases(true) to check the server (not applicable for your testing due to #1, but needed for real-world testing).

 

On a side note, as of 10.2 requestExistingPurchases(false) will automatically check the server in the event the client cache is stale.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.