2013-04-24 124 views
0

我正在開發具有In應用功能的應用程序,需要根據用戶的需要一次又一次購買,但是當我們嘗試再次購買帶有下游錯誤消息的產品時,應用程序崩潰 - The original purchase must be reported as fulfilled before you can try to repurchase 我試過使用ReportProductFulfillment(pID);但不知道使用這種方法的位置, 請建議我該怎麼做?在應用購買易耗品響應錯誤

注意我的產品是易耗品

謝謝。

回答

0

您是否使用過此方法?請嘗試此操作當收到來自服務器(Windows應用商店)時。

ReportProductFulfillment(productId);

// Summary: 
    //  Notifies the marketplace that the application has delivered the paid-for 
    //  goods to the user. You cannot repurchase a product until you have confirmed 
    //  its delivery using this method 
    // 
    // Parameters: 
    // productId: 
    //  The ID of the product that has been delivered to the user. 
    public static void ReportProductFulfillment(string productId);