in-app-purchase

How to get locale currency price for in-app purchases in iOS?

会有一股神秘感。 提交于 2019-12-29 02:46:05
问题 I want to find out user's App Store location. It means they are in US, Australia(AUD) store. Following code used. - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response { Books = response.products; if ([SKPaymentQueue canMakePayments] && [response.products count]>0) { } for (SKProduct *book in Books) { NSLocale *locat=[NSLocale currentLocale]; NSString *strlocate=[locat objectForKey:NSLocaleCountryCode]; NSLog(@"\n\n\n Device country== %@ \n\n\n

mService.consumePurchase(3, packageName, purchaseToken) always returns RESULT_DEVELOPER_ERROR = 5 - invalid arguments provided to the API

孤街浪徒 提交于 2019-12-28 16:01:11
问题 I'm always getting "RESULT_DEVELOPER_ERROR = 5 - invalid arguments provided to the API", when trying to consume a purchase with String purchaseToken = "inapp:" + getPackageName() + ":" + productId; int response = 0; try { response = mService.consumePurchase(3, getPackageName(), purchaseToken); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } For that reason, I can always only make a purchase once. However, I need to be able to make the purchase much more

IAB startSetup NullPointerException

試著忘記壹切 提交于 2019-12-28 12:03:03
问题 I am attempting to setup In-App Billing in my application. I haven't got very far and am running into a null pointer exception when trying to start my IabHelper. I am following this google tutorial. import com.iabtest.util.IabHelper; import com.iabtest.util.IabResult; public class MainActivity extends Activity { IabHelper mHelper; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String

IAB startSetup NullPointerException

笑着哭i 提交于 2019-12-28 12:02:32
问题 I am attempting to setup In-App Billing in my application. I haven't got very far and am running into a null pointer exception when trying to start my IabHelper. I am following this google tutorial. import com.iabtest.util.IabHelper; import com.iabtest.util.IabResult; public class MainActivity extends Activity { IabHelper mHelper; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String

in app purchase in SKScene

此生再无相见时 提交于 2019-12-28 06:13:47
问题 Is it possible to implement an in-app purchase within the SKScene ? If so, how? I'm trying to use a SKSpriteNode as a 'buy' button with no luck. I'm not sure whether the code needs to go in the SKScene or the view controller. I've looked at loads of tutorials, but they all seem to be aimed at single view applications rather than in SpriteKit. 回答1: First, put this in your game scene line and make sure you have the framework 'StoreKit' imported class GameScene: SKScene,

in app purchase in SKScene

ぃ、小莉子 提交于 2019-12-28 06:13:05
问题 Is it possible to implement an in-app purchase within the SKScene ? If so, how? I'm trying to use a SKSpriteNode as a 'buy' button with no luck. I'm not sure whether the code needs to go in the SKScene or the view controller. I've looked at loads of tutorials, but they all seem to be aimed at single view applications rather than in SpriteKit. 回答1: First, put this in your game scene line and make sure you have the framework 'StoreKit' imported class GameScene: SKScene,

In App billing not working after update - Google Store

佐手、 提交于 2019-12-28 05:33:12
问题 I have implemented In-App billing in my app - and very recently google has updated it,previously i was testing the in-app billing with "android.test.purchased" and it was working fine (Buy full Version and Restore full version). Now i took the changed classes from here https://code.google.com/p/marketbilling/source/detail?r=7bc191a004483a1034b758e1df0bda062088d840 After that i am not able to test the app it gives the following error in the Logcat "IabHelper: In-app billing error: Purchase

How does Apple notify iOS apps of refunds of in-app purchases (IAP)?

Deadly 提交于 2019-12-28 01:46:29
问题 I have Apple iOS IAP successfully implemented in my app and tested in the sandbox. Works great. I'm concerned that users could buy something with IAP, download it into my app, then complain to Apple and get a refund. There's no obvious way that refunds are reported to my app. Are they simply left out of the list of products I receive during a "restore" operation? Is there some undocumented transaction type that will asynchronously show up in my SKPaymentTransactionObserver when a refund

Common subscription for Android and iOS App

给你一囗甜甜゛ 提交于 2019-12-25 16:59:07
问题 We are developing a Point of Sale app available on iOS and Android platforms. Our business model is such that, each user will have to pay us a customised cost based upon the number of his business outlets on half yearly or quarterly basis. Once the user will pay us that cost than he could use our apps on any number of devices, on any platform. I want to know if it's compulsory to process subscription charge for iOS App through Apple In App Purchases. Or we can process subscription offline and

Migrate from free and paid versions app to one app with in-app purchases

▼魔方 西西 提交于 2019-12-25 09:17:46
问题 I did big mistake with monetisation my app in Google Play. I separated my app to 2 versions (with different applicationId), but now I would like to have one app with in-app purchases to Pro version or something like unlocker. I have a lot of downloads my pro version app so I can't just remove it from Google Play. Does anyone faced with this problem ? Any workarounds ? 回答1: You can definitely integrate both apps ( Search on stackoverflow for integrating both apps ), but that will not solve