Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

In my quest to figure out how to make Value Billing work on the emulator, I ran into a "problem" with my app regarding IBILLING_Prepare. My IBILLING_Prepare callback would be called OK, but the result of the preperation would always be FAILED.

I couldn't figure out why, so I decided to see if the ibsample app had the same problem. Running the sample didn't give cause for concern, until I looked closely at the debug output. There you will see it tries to load the billing module 3 times. If you examine the code you will see that their IBILLING_PrepareCallback fires reschedules itself up to 3 times in the event of failure. So, it turns out the sample had the same problem and was getting a failed result on preperation as well. Just that after the third time they give up and pretend like things are OK (their is a comment in the source that is misleading about this though, it makes it sound like an error IS displayed, but its definitly not).

After rebuilding the ibsample with more debug output (and creating fake bid and *_res.h files among other things since those were nicely left out of the "source" that came with the download along with any kind of makefile) I confirmed that the sample was getting the same error my app was.

I could not figure out why this was happening though. I hunted around for awhile, then I just decided to try things and see if it was OK. Turns out things were OK :confused:

What the heck is up with that?

Anyone have any idea why IBILLING_Prepare would be returning false, even though things seem to work OK?

AVB Sample on Simulator
Use atleast 3.1.2 version of BREW SDK and simulator
Download and copy the sample app into
Copy the extension in
Run the AVB Server simulator
load the VB Pricing xml file in Server simulator
Run the sample app in "Debug" Mode
Request the Pricing, Server Simulator will send VB pricing

AVB Sample on Simulator
Use atleast 3.1.2 version of BREW SDK and simulator
Download and copy the sample app into
Copy the extension in
Run the AVB Server simulator
load the VB Pricing xml file in Server simulator
Run the sample app in "Debug" Mode
Request the Pricing, Server Simulator will send VB pricing

Where can I get a template of the VB pricing XML file?
Thanks

Where can I get a template of the VB pricing XML file?
Thanks

Do you mean A-VB price plans? A-VB price points has to be created on BREW developer extranet. I don't think there is anything like template.
See A-VB details at:
https://brewx.qualcomm.com/developer/document.do

Do you mean A-VB price plans? A-VB price points has to be created on BREW developer extranet. I don't think there is anything like template.
See A-VB details at:
https://brewx.qualcomm.com/developer/document.do

Thanks Atul.
I'm guessing that the A-VB server simulator requires a pricing XML file for test purposes - IBILLING_GetPricing() in particular.
I've got the server running, and can create and post legacy VB transactions using IBSample, but 'Get VB Price Points' is failing. I suspect it is because I haven't 'load the VB Pricing xml file in Server simulator' as per your prior post.
Thanks

Thanks Atul.
I'm guessing that the A-VB server simulator requires a pricing XML file for test purposes - IBILLING_GetPricing() in particular.
I've got the server running, and can create and post legacy VB transactions using IBSample, but 'Get VB Price Points' is failing. I suspect it is because I haven't 'load the VB Pricing xml file in Server simulator' as per your prior post.
Thanks

If you download server simulator 2.0.0 from developer extranet, it has pricing xml file and it works good (you can get AVB pricing from sample).
Here you go: https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/tools/avb
Attaching pricing files for your reference. These files should be with BREW_VBillingServer.exe in bin folder.

If you download server simulator 2.0.0 from developer extranet, it has pricing xml file and it works good (you can get AVB pricing from sample).
Here you go: https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/tools/avb
Attaching pricing files for your reference. These files should be with BREW_VBillingServer.exe in bin folder.

Thanks again. Got the prices.xml, but I cannot access the link in your prior post to get the A-VB Server Simulator 2.0.0. The only version I can access is v1.0.0. How can I get v2.0.0?
Thanks
Mike

Thanks again. Got the prices.xml, but I cannot access the link in your prior post to get the A-VB Server Simulator 2.0.0. The only version I can access is v1.0.0. How can I get v2.0.0?
Thanks
Mike

TRy going from https://brewx.qualcomm.com/brew/sdk/download.jsp page. This page has link "Application Value Billing Server Simulator".
Note that this is available only to authenticated developers.

TRy going from https://brewx.qualcomm.com/brew/sdk/download.jsp page. This page has link "Application Value Billing Server Simulator".
Note that this is available only to authenticated developers.

Hi Atul,
I am not able to download the AVB simulator from the URL you mentioned.
https://brewx.qualcomm.com/brew/sdk/...e=dx/tools/avb
where can I find it ? I am an authenticated BREW developer.
-Vikram

Hi Atul,
I am not able to download the AVB simulator from the URL you mentioned.
https://brewx.qualcomm.com/brew/sdk/...e=dx/tools/avb
where can I find it ? I am an authenticated BREW developer.
-Vikram

Hi Atul,
I got the simulator at
https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/AVBilling
But this one is 1.0.0. I read 2.x is also available but could not fine anywhere. Can you provide the link ?
And where do I get the A-VB extension ?
-Vikram

Hi Atul,
I got the simulator at
https://brewx.qualcomm.com/brew/sdk/authdownload.jsp?page=dx/AVBilling
But this one is 1.0.0. I read 2.x is also available but could not fine anywhere. Can you provide the link ?
And where do I get the A-VB extension ?
-Vikram

AVB server simulator 2.0: Go to https://brewx.qualcomm.com/brew/sdk/download.jsp and search for "Application Value Billing Server Simulator" on the page loads.
Steps to get access to AVB Extension:
1. Developer needs to work with Dev Rel(Developer Relation)
2. Sign an AVB amendment
3. Legal/Dev Rel will ask Product Support to add the Developer to Mfr Distribute List
4. Then Developer will see the Extension in DX 'Extension Library'

AVB server simulator 2.0: Go to https://brewx.qualcomm.com/brew/sdk/download.jsp and search for "Application Value Billing Server Simulator" on the page loads.
Steps to get access to AVB Extension:
1. Developer needs to work with Dev Rel(Developer Relation)
2. Sign an AVB amendment
3. Legal/Dev Rel will ask Product Support to add the Developer to Mfr Distribute List
4. Then Developer will see the Extension in DX 'Extension Library'