Version: 2017.2
상품 메타데이터 브라우징
구매 처리

구매 시작

사용자가 상품을 구매하고자 할 때에는 IStoreControllerInitiatePurchase 메서드를 호출하여 구매하고자 하는 상품을 식별합니다.

// Example method called when the user presses a 'buy' button
// to start the purchase process.
public void OnPurchaseClicked(string productId) {
    controller.InitiatePurchase(productId);
}

애플리케이션은 구매 성공의 경우 ProcessPurchase 호출, 구매 실패의 경우 OnPurchaseFailed 호출로 결과를 비동기적으로 전달받게 됩니다.

상품 메타데이터 브라우징
구매 처리