Problem with blackberry.payment

I hope someone can shed some light on this issue, or at least to see the error that I can not!

It is the first application I developed for the Blackberry platform.

I developed an application for all platforms on the blackberry, but I get a javascript error when it comes to buy an application, all other uses of the work to be of fine blackberry.

A few details:

(1) the "blackberry.payment" function has been added in the config file.

(2) I use the most recent versions of the webworks SDK for all platforms.

(3) I used the sample code on the api documentation here.

The problem:

I get the following JavaScript error code, this code is saved by my application on the device itself, downloaded from the app store.

"TypeError: 'undefined' is not an object.

And is related to the function below (details deleted)

try {}
BlackBerry.Payment.Purchase ({/ / this is showing as undefined?})
"" "digitalGoodID" *,:
"" "digitalGoodSKU" *,:
"" "digitalGoodName" *,:
"" "Metadata" *,:
"" "purchaseAppName" *,:
'purchaseAppIcon': null,
"extraParameters": null
(}, spOnPaySuccess, spOnPayFailure);
} catch (e) {}
spErrorHandler (e);
Alert ("your purchase of upgrade failed!");
}

The error is getting thrown when the application tries to use blackberry.payment.purchase!

Y at - it something obvious, I do not see, I'm used to working in JavaScript and just can't understand why the object will return as undefined, when all the other blackberry... objects work fine.

I noticed that when you build the application, mentioned command-line interface that it couldn't find blackberry.payment?

I hope I made that clear, and I thank you in advance.

Kind regards

Seth

Looks like you have an older version of the BlackBerry WebWorks 10 SDK!  In my view, that the latest version is 1.0.4.11.  Try to install this version of here (http://developer.blackberry.com/html5/download/) and see if that solves your problem

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Smartphones Cust is having problems with Blackberry App world. BB App...

    Cust is having problems with Blackberry App world. BB App World says it has changed its device pin code too many times (exceeded pin code changes) and leaves him not download applications more

    Hello!

    Your request should be sent as follows. Go to this address:

    and complete the form. Use, in the "Please select a component:"on the ground, AppWorld billing/payment selection. " Don't forget to also include the reason why you have exceeded your maximum eligible PIN associations to AppWorld (for example, several RMA, warranty replacement, etc..).

    If this does not work, then please come back on these forums (http://supportforums.blackberry.com/rim/) and create an account so that we can provide direct assistance.

    See you soon!

  • I want to download free applications, but it doesn't let me do it cause I have a problem with my payment, I try to remove my debit card and the option did not appear, I can't choose no for the payment, what can I do?

    I want to download free applications, but it doesn't let me do it cause I have a problem with my payment, I try to remove my debit card and the option did not appear, I can't choose no for the payment, what can I do? This happen after I bought some coins for a game

    You must settle the debt until you can download something else of the podcast episodes on the iTunes Store or select None as the payment option.

    (142394)

  • There is a problem with my payment information and I can't configure any application I want to remove my information from my icloud account payment

    There is a problem with my payment information and I can't configure any application I want to remove my information from my icloud account payment

    There are no withdrawal, must be replaced and released.

  • Problem with 'Blackberry Protect' blackBerry Smartphones

    Hello

    I have a problem with 'Blackberry Protect', I got a message telling me
    "Your mobile pass does not include Blackberry Protect."

    I called my provider and they told me to contact you

    I need your help please

    They are wrong. Your carrier decides what data packages they offer and what is included in their packages. You will need to just talk & text or perhaps 500 MB of data without BBM, etc.. If your monthly subscription does not BlackBerry Protect, you obviously don't have the data package, you need.

    Call them to fix it.

  • Payment error - there is a problem with your payment. Please try again later or contact Adobe technical support

    Can not buy single images because... "Payment error" "there is a problem with your payment. Please try again later or contact Adobe technical support. »

    There are thousands in the account and I can't buy a 69P. I tried different cards, but the problem persists.

    This is the fourth time that this happens. What a complete farce.

    Club Photo dollar worked superbly. Adobe bought and forced some of us here at a lower system which also has problems such as above.

    Why do we have the option to purchase credits? It is trying to force us on a costly monthly subscription?

    Online support is useless. Very slow. Their solution is to support ring technique. Thereafter.

    Technical support is entrusted to a country where English is not their first language. Not just on the other side.

    Hello

    Sorry to hear you had questions, make a purchase.

    It seems that your card details have been changed successfully and a new order has processed.

    Kind regards

    Bev

  • Problem with my payment on Stock Images

    Hello. I was wondering if this has resolved. I just signed and updated my payment.

    Error

    There is a problem with your payment. Please try again later or contact Adobe technical support.

    Is there a solution? I need to buy 2 videos to finish a project...

    Hi K.Winger,

    The trolley came several times. I'll be sure to pass on to product management.

    I think I know what is happening. Instead click on the cart icon in the thumbnail of the image, you can click on the center of the thumbnail to open the details for the video. There will be a licence and the registration option and you will be able to buy the video for details. We are aware of the problem with the purchase of the tile and hope to have a fix for this soon.

    Please let me know if this work around does not work for you.

    EBQ

  • I have a problem with the payment: (why charge me 44,99 EUR (cost 61.99 euros) then block system and I can't use the programs :(

    I have a problem with the payment why charge me 44,99 EUR (cost 61.99 euros) then block system and I can't use programs

    Please click Accounts & billing link here https://helpx.adobe.com/contact.html to have a conversation with our billing support team.

    Thank you

    Stéphane

  • Hello. I have a problem with the payment process when trying to buy the plan of creative photography of Cloud (one year). the error is: there was a problem processing your order, please contact our Service team customer care for assistance. AfricaBa North

    Hello. I have a problem with the payment process when trying to buy the plan of creative photography of Cloud (one year).

    the error is: there was a problem processing your order, please contact our Service team customer care for assistance. Middle East & North AfricaBahrain: 80081097Egypt: 08000000447Jordan/Kuwait/Lebanon/Qatar/Yemen: English + 44 207 365 0735Jordan/Kuwait/Lebanon/Qatar/Yemen: Arabic/French + 44 203 564 4145Oman: 80077173Saudi Arabia: 8008446638Tunisia, the Morocco and the Algeria: + 33 United Arab Emirates 157324642United: 80004443085Commonthwealth of independent States (CIS): + 44 207 365 0735

    Help me please to solve this problem. I need my lightroom immediately)

    Hi mohamed,.

    Please see the link below to buy the plan of photography:

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    In case you still have question, please contact sales at Adobe team.

    Adobe Middle East and North Africa

    Kind regards

    Sheena

  • BlackBerry Z10 text message problem with BlackBerry Z10 - insulation, inadmissible, not shipping

    Having a few texts from major problems.  Sometimes when I touch on a contact, I send SMS it takes about 20-30 seconds for the key board and the cursor to arrive.  When you type, it takes 20-30 seconds for the next typing.  When I finally have the ready message, it will take 30 to 60 seconds to send... or I get an alert "failed to save the message.  I rebooted and tried to take the battery off-don't... no luck.

    This problem occurred intermittently for the last few months, but sometimes for an hour or two.  Currently, it has been almost 24 hours.  I'm getting very, very tired of these problems with this phone.  I've been a BB user for 7 years and will visit with someone else I'm frustrated that.

    However, my BBM works very well.

    Hello

    So, she was always like that? Or is this new behavior? If new, what happened just before the behavior started? An update of a certain type? A new application? Physically removed or damaged? Something else?

    Also, sometimes the OS itself just is damaged and a clean OS refill can be useful for troubleshooting problems.

    Official methods, which will be controlled as to what exact OS versions are available:

    Non-official methods, which are cleaner and allow you to choose a version of the OS that maybe your carrier (or anyone they control your offers) delays in approval:

    Of course, before you start this, you want a good backup link, a manual copy of the memory of your device to your PC and complete documentation of your configuration (identification information of account, adding applications, configurations, etc.). Sometimes, restoring a backup returns unit corruption even, must be eliminated and reconfiguration from scratch can solve that.

    Be aware of the risks of 10.3.2 however... There are two things to worry about. First of all, be 100% sure that you know your BBID identifiers... If you do not, you may make your useless device to anyone, including yourself. Second, once you move to 10.3.2, you cannot fall back to 10.3.1 or earlier, by any medium (for example, even the unofficial AutoLoaders can not overcome this restriction anti-secours).

    Good luck!

  • BlackBerry smartphones 'there is a problem with Blackberry App World. Please try again. »

    Whenever I try to download whatever app world or click on my world, he always says 'there is a problem with the Blackberry App World. Please try again. "I can't download apps because of this, and I have consulted with my carrier in this respect. They said I should be able to access the universe of the app by wifi since I'm subscribed to a data plan Blackberry (BBM). They don't know what to do with my problem anymore. Everything else works except the app world. Help, please. BTW, I'm trying to access the app through a mobile internet captive universe. That this has something to do with it?

    Hi trishthestranger

    Please uninstall AppWorld options > device > application management.

    Scroll down to BlackBerry AppWorld > delete.

    or KB10040 : how to view or delete the application installed on a blackberry smartphone

    Perform a restart on the BlackBerry this way: with the phone smart BlackBerry turned on, remove the battery for a min. and then reinsert the battery of waiting until it reboot.

    Now, since your browser BB go to thewww.blackberry.com/appworld and install again.

    After installation go to app world and see if you are able to download on a PC, you can also try to scan the barcode of this application, it will request a download link on your device. Please try it and let us know. But like I said try to download Over the Air.

    Prince

    Click 'Like' If you want to thank someone.

    If problem resolves mark message (s) as a 'Solution', so that others can use.

  • Problem with blackBerry Smartphones

    My model number of blackberry's curve 9220, I am faced with a serious problem but who is bit Wired, yesterday, I found my mobile screen doesn't work, its getting when it comes under the light, otherwise the screen is totally black. The phn is absolutely fine in the light of day or under a light, but again urban power off when you its in black. I don't know what that is the problem, that is, please can you me what exsactly happened? Its urgent... Please come back to me as soon as possible.

    abirbb wrote:

    Thanks, for the reply. But I tried all possible ways, but I failed, I think it's a problem with the sensor. I loaded my mobile during the night, but its still does not not in the dark. In fact, my phone was in my Pocket yesterday and it was raining, but it was not during treatment, but when I pulled out the Pocket it was totally urban off. I thought I should keep under a fan or a light after 1 hour it turned on and I made calls and it was working fine. But it was because of the light that I discovered much later. Do you think this a serious injury?

    Please wait... Remove the battery immediately!

    YES... It can cause some SERIOUS DAMAGE!

    If our BlackBerry never am wet then we shouldn't try to turn to see if it works. Must immediately remove the battery and also SIM media card. We should put in a bag of uncooked rice that absorb moisture. Should allow for at least 3 to 4 days unless we are sure that the moisture has been absorbed completely. Then we need to put our BlackBerry over entire surface of heat as a stabilizer, CRT monitor or output in the dashboard of a car on a sunny day. Before inserting the battery, we should be sure that it is completely dry.

    Always it after following these steps, it is not ensured that our device will be no problem and happen as above, because when moisture or any substance liquid go our BlackBerry, he started corrosion which leads to the problem like quick battery drainage, by typing problem and many more.

    Then, remove the battery and try these steps.

  • Problem with the payment and the update of the payment details

    Hello

    I have problem with payment and payment information up-to-date. I have paid via Paypal at the end of January, but Adobe does not see that. They ask me in emails to update my payment information. I try to do, but it does not work. Can someone help me solve this problem?

    Hello

    If your payment method is 'Paypal', which cannot be changed to any other mode of payment (if you try to change)

    You must cancel the current subscription in order to change the method of payment.

    Please contact Adobe customer care http://helpx.adobe.com/contact.html

    • Remember that you are logged on the page with your Adobe ID.
    • Select your product and what you need help with
    • Click on the blue box "still need help? Contact us. "
  • Problems with Blackberry Bold 9900 blackBerry Smartphones

    Hello.

    This is my first post on this forum.

    I used Blackberry 9800 about 1 year. I had the SIM with Blackberry Internet Servise.

    But there are two weaks my dead smartphone.

    I bought the new Blackberry 9900.

    I installed my Blackberry to Blackberry 9900 9800 sim card.

    But BIS do not work. Service books came on smartphone, but the host Routing Table is empty.

    I retry batery pull several times. Sign up for now.

    Reinstalled the firmware by most software of the telecoms operator. Data services swith on.

    Edge symbol does not to ENDE.

    I don't know what I want to do.

    Telecommunications operator could not help me.

    There are many formal BB people on this site who can do different things... but it shouldn't because it is an exceptional case. The function of the site as a community of users, is clearly documented in the Ts and Cs as well as a banner at the top of every page of the site. When a person BB troubleshoot in a thread, it should be considered an exception, not the rule.

    Of course, you are free to send a private of the VF message and see if you can have such favors.

    Good luck!

  • Problems with the payment of Lr

    Hello, I need help with my payment of Lr, adobe can´t load why my payment?

    Ensure that EACH DETAIL is the same in all places, you enter your information

    -in how to spell and punctuate the parts of your name and address

    A few changes/Verify account https://forums.adobe.com/thread/1465499 links that can help

    -Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting-cr creative - cloud.html

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

Maybe you are looking for