Considerations when testing purchases through a sandboxed account
on 01-21-201304:10 PM - edited on 11-07-201310:33 AM by MSohm
This article applies to the following:
Applications created with any of the BlackBerry® PlayBook™ development SDKs that include Payment Services
Applications created with any of the BlackBerry® Smartphone™ development SDKs that include Payment Services
The BlackBerry® World™ sandbox accounts allow developers to test their applications without needing to pay as normal BlackBerry World consumers would; this can be used for testing paid apps or apps that use in-app payments to ensure everything is functioning as expected before posting for sale. Note that sandbox accounts are specific to a Vendor account meaning that a Vendor can add users to their account and allow users to use applications for free posted by that Vendor only.
One very important thing to note about using sandbox accounts which will make the rest of this article make much more sense, when a purchase is made while in the sandbox no money is exchanged and no transaction record generated. Transaction records are what BlackBerry World uses to know a purchase has been made which means a few things:
Trying to retrieve past purchases (including subscriptions) of digital goods from BlackBerry World will not return any results
The Transaction ID of any purchase will always be ‘0’
This means that if you are checking for existing purchases during testing and/or validating or recording the transaction ID values, it would be good to account for the above scenarios which will be encountered when testing.