ProductHasPaied
查询商品是否被购买过的状态
- Java
- Kotlin
- Objective-C
- Swift
Market.getInstance().getProductHasPaid(productId, new AWHttpCallback<ProductPurchaseState>() {
@Override
public void onSuccess(ProductPurchaseState response) {
}
@Override
public void onError(String errorCode, String errorMsg) {
}
});
Market.getInstance().getProductHasPaid(productid,object : AWHttpCallback<ProductPurchaseState>{
override fun onSuccess(response: ProductPurchaseState?) {
}
override fun onError(errorCode: String?, errorMsg: String?) {
}
})
[AWPurchaseKit getProductHasPaiedWithProductId:productId withcompletion:^(BOOL success, AWProductPurchaseState * _Nullable state, AWError * _Nullable error) {
}];
AWPurchaseKit.getProductHasPaied(withProductId: String) { Bool, AWProductPurchaseState?, AWError? in
}
Parameters:
- productId:需要查询的商品ID