//////////
Search
Duplicate

Purchase History

태그
1 more property

1. Purchase History Verification

Purchase History Verfication can be done using StovePC_VerifyPurchase, the IsPurchased field is true for products that have been purchased more than once.
Purchase History Verification is performed targetting the cache within PC SDK.
If you enter categoryID parameter, verification is only carried out within that categoryID. However, if you use an empty string parameter (””), then verification is done for all categories.
Therefore, it may be advantageous to enter categoryID in terms of seach speed.
// input parameters // char* categoryId: Category ID to search for products // int64 productId: Product ID StovePCPurchaseVerification purchaseVerification = StovePC_VerifyPurchase("CATEGORY_ID", PRODUCT_ID); if (purchaseVerification.result == StovePCResult::STOVE_PC_NO_ERROR) { printf("VerifyPurchase Success"); printf(" - purchaseVerification.isPurchased : %s", purchaseVerification.isPurchased ? "true" : "false"); } else { // handle failure }
C++
복사
The StovePC_VerifyPurchase function returns a StovePCPurchaseVerification structure. The returned StovePCPurchaseVerification structure contains the product purchase history, including the error codes.