Thanks Ashley, I've managed to make some good progress and am just short of being complete. I have one last issue in the sample I am creating. You can see my defined event flow here.
On loader layout completion, I...
Log the progress.
Call GetExistingPurchases.
Call RegisterBBM.
This part seems to work fine, and GetExistingPurchases will either trigger success or failure as follows.
<pre 100="">...
blackberry.payment.getExistingPurchases(
true,
function onSuccess(data) {
cr.plugins_.blackberry10.prototype.exps.existingPurchases = JSON.stringify(data);
_this.runtime.trigger(cr.plugins_.blackberry10.prototype.cnds.onGetPurchasesSuccess, _this);
},
function onFailure(error) {
cr.plugins_.blackberry10.prototype.exps.PaymentError = error.errorText + ' (' + error.errorID + ')';
_this.runtime.trigger(cr.plugins_.blackberry10.prototype.cnds.onGetPurchasesFailure, _this);
}
);
...</pre>So far, we're good. The request actually fails (since I've been side-loading and there is no connection to the Payment servers yet.) So, in the diagram, BlackBerry10.onGetPurchasesFailure is triggered as expected.
However, my output is only:
Payment (Failure): Get existing purchases.
Where I would expect two additional lines to be logged as well. Specifically:
1) A newline and the contents of PaymentError.
2) A new line and "Shazam2!"
But neither of those two actually show; it's as if something stops execution, but Web Inspector logs no errors.
If I need to clarify anything at all, please just let me know. I'll continue hammering away here, but if anybody has any insight, again I'm happy to hear it.
Cheers!