04-06-2012 07:00 AM
I am using payment sdk 1.5 and Balckberry device 9700 6.0 os and App world version 3.1.
I implemented in app purchase subscription model.
I am testing my application uploading in App world in Draft state.
I purchased digital good and Purchase.getItemState() returning SUBSCRIBED.
but after exiting the application and return to app I am checking existing purchases using
PaymentEngine.getExistingPurchases(true); its not returning any existing purchases. Is this works for getting existing purchases or is there any other way.
Solved! Go to Solution.
04-10-2012 10:41 AM
PaymentEngine.getExistingPurchases(true); will only return purchases for which there was an actual transaction. When testing in Sandbox mode there is no actual transaction (no purchase is actually made, only simulated) so no purchase history will exist.
04-11-2012 12:49 AM
And I have one more question.
I have tried PaymentEngine.checkExisting(sku) after initial purchasing in subscription model.
It's also always returning false even after purchasing.
So is it also doesn't return actual value through Sand box account.?
Thanks in Advance
04-11-2012 08:47 AM
04-12-2012 08:41 AM
purchasing not allowing other than sanbox account in draft stat
Please provide clear steps to test subscription of payment service.
04-12-2012 09:07 AM
You can test purchasing a suscription, just not retrieving existing subscription information.
If you would like to test in DRAFT mode then you would need to skip the PaymentEngine.getExistingPurchases(true) call and instead create your own Purchase object array to parse for testing purposes.