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

Adobe AIR Development

Reply
Developer
Posts: 30
Registered: ‎02-05-2013
My Device: none
My Carrier: Personal

How do I add the item/s to the payment service application?

Guys... I have 2 buttons: "Extra Life" and "Bomb" ... each of them suppose to instantiate the payment service class, so you can buy an extra life or a bomb... Now... Do I have to add these items as digital goods? / How do I relate them from Digital Goods, to the button itself? Thanks!!!!
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How do I add the item/s to the payment service application?

Yes, they are a digital good. When you create a digital group, you supply a unique ID/sku. When you call the payment service, you use that id/sku.

You dont add the id to the button itself. The button has a callback that calls the correct payment service API.
Developer
Posts: 30
Registered: ‎02-05-2013
My Device: none
My Carrier: Personal

Re: How do I add the item/s to the payment service application?

Thanks!... Can you give me an example on how it should be? (the button thing)

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How do I add the item/s to the payment service application?

mybutton.addEventListener( MouseEvent.CLICK, myCallback );