Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Business Forums > Business, Legal, & App Store

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2011, 07:21 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 557
Joseph Nardone is on a distinguished road
Default Displaying In App Purchase Price

This is my first experience with in-app purchase.

All I am selling is switch added to my "settings" view that allows advertising to be turned off.

I have a button that says - "click here to purchase" under the description of what will happen after the user purchases.

I do not have a price listed for the in app purchase in the app as I want to be able to change it later. The price from iTunes Connect shows up in the alertview when the button is pushed.

Is this an acceptable way to do it or do I need to get the current price for my item from iTunes connect and display it in the app?
Joseph Nardone is offline   Reply With Quote
Old 01-07-2011, 08:37 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 1,018
Tambourin is on a distinguished road
Default

Retrieving the price from Apple is quite easy as it is already included in the SKProduct object.

To get the price in local currency I use this code:

Code:
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
[numberFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[numberFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[numberFormatter setLocale:product.priceLocale];
NSString *stringPrice = [numberFormatter stringFromNumber:product.price];
[numberFormatter release];
Tambourin is offline   Reply With Quote
Old 01-07-2011, 10:34 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 557
Joseph Nardone is on a distinguished road
Default

Thanks, that worked great after I added the code to retrieve the product objects.

I actually have two products so I had to send an array to get back both prices.

I had been using only the purchase method, which required the user to start the purchase before they saw the price.
Joseph Nardone is offline   Reply With Quote
Old 01-10-2011, 01:55 AM   #4 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 171
awestonlin is on a distinguished road
Default

Hey Guys,

Are you guys solely monetizing off in-app purchases and using the itunes store as your transaction platform?
__________________
Once Co-Founder/CEO @ G6pay, now @ LVL6 Games.
@ LVL6 | follow me @awestonlin
awestonlin is offline   Reply With Quote
Old 01-10-2011, 02:16 AM   #5 (permalink)
Scan Me !
 
MozyMac's Avatar
 
Join Date: Nov 2009
Posts: 608
MozyMac is on a distinguished road
Send a message via AIM to MozyMac Send a message via MSN to MozyMac Send a message via Yahoo to MozyMac
Default

Quote:
Originally Posted by Tambourin View Post
Retrieving the price from Apple is quite easy as it is already included in the SKProduct object.

To get the price in local currency I use this code:

Code:
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
[numberFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[numberFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[numberFormatter setLocale:product.priceLocale];
NSString *stringPrice = [numberFormatter stringFromNumber:product.price];
[numberFormatter release];
Thanks for sharing the code
MozyMac is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 457
17 members and 440 guests
13dario13, Absentia, Domele, dre, Droverson, flamingliquid, givensur, hussain1982, iAppDeveloper, ipodphone, JmacDotOrg, laley, logan, MarkC, metalogico, RobTaku, tomtom100
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,641
Threads: 94,108
Posts: 402,849
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JmacDotOrg
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:07 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0