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

Web and WebWorks Development

Reply
Contributor
Posts: 16
Registered: ‎01-05-2012
My Device: Playbook, Curve 9360
My Carrier: GP

BB10 in-app payment with webworks

My application was rejected for BFB mentioning the following:

 

* Improved gameplay

* Better graphics

* There’s an error when we try to use the in app payment service, it say the service is unavailable even though the other app in app payment having no problem

 

So, is the BB10 payment API working? I used the following code to give the user opportunity even if the api is unavailable.

 

        if ((window.blackberry === undefined) || (blackberry.payment === undefined)) {

            console.log("buyBoard", "blackberry.payment object not supported");

            var afterResponse = function (selection) {

                if (selection["return"] == "Yes") {

                    setBoard(index);

                }

            };

           // ask() just invokes blackberry.ui.dialog.standardAskAsync

            ask("The Blackberry payment service is not available for BB10. You may enjoy using this board for free until the service is available. Do you want to continue?", "Payment", afterResponse);

 

        }

 

 

Can someone help me in this regard, thank you.

Developer
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: BB10 in-app payment with webworks

If you go to the HTML5 documentation and API's page:

https://developer.blackberry.com/html5/apis/bb10_index.html

 

Searching for "payment" has no results.  I'm going to conclude that it's not ready yet.

If it helped you, click like. Smiley Happy
Contributor
Posts: 16
Registered: ‎01-05-2012
My Device: Playbook, Curve 9360
My Carrier: GP

Re: BB10 in-app payment with webworks

Yes, that's correct. I even gave a message and allowed the user to use the feature temporarily, they considered that as error.

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: BB10 in-app payment with webworks

The Payment APIs in WebWorks are not yet implemented for BlackBerry 10 however their progress can be tracked here:

https://github.com/blackberry/BB10-WebWorks-Framework/pull/455

Garett
@garettBeuk
--
Goodbye everybody!
Contributor
Posts: 16
Registered: ‎01-05-2012
My Device: Playbook, Curve 9360
My Carrier: GP

Re: BB10 in-app payment with webworks

Thank you very much for the confirmation.