在应用程序购买耗材产品响应错误

时间:2013-04-24 13:04:08

标签: windows-phone-8 in-app-purchase

我正在开发具有In app功能的应用程序,需要根据用户的需要一次又一次地购买,但是当我们尝试再次购买产品并且出现错误消息时,应用程序会崩溃 - The original purchase must be reported as fulfilled before you can try to repurchase 我尝试使用 ReportProductFulfillment(pID); ,但不确定使用此方法的位置, 请建议我做什么?

注意 - 我的产品是消耗品

感谢。

1 个答案:

答案 0 :(得分: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);