11-06-2013 03:11 PM
Can any one help.
Additional note: this failed in a Z10 dev alpha, a purchased Z10 device, and a Q10 when sent for approval to blackberry.
Solved! Go to Solution.
11-08-2013 04:47 PM
Since you only added the webworks.js file at the end, I'm guessing that you might not have included the proper steps to use blackberry APIs. Are you setting up a listener for the webworksready event before you call any blackberry APIs? There is a good example here: https://github.com/blackberry/BB10-WebWorks-Sample
Looking at the Payment docs, I also see we've got both BBOS/PlayBook APIs listed in there with the BB10 ones and you'd have to double check them before calling them to see which ones are the right to use.
Have you stepped through the code in WebInspector to see what payment call triggers the crash?
11-11-2013 02:05 PM
I have review the code. And in order to solve this I did the following
- I include at the top of the <header> the BBUI.js
- Then I include webworks.js and then all other Js code I have.
- Put the webworks listener and inside it the code I needed to prepare my app
- And finally Make sure that all the parameters and values in the purchase function are in quotes.
Once I did all these steps I manage to solve the issue.
Thanks for your help.
Can you let me know if you have a billing example for Blackberry 10?
11-11-2013 02:27 PM
I'm glad to hear that. It sounds like you made the necessary changes. I looked before and found no full examples of payment in our samples on GitHub. I thought we did have one, but it doesn't appear so.
11-12-2013 12:42 PM
Hey we got our app approved. But we are now havin this other issue, that in this other post.