purchase

fun purchase(marketPid: String, iapPayload: String?, listener: IAPV4.IAPV4PurchaseListener)

App Store, Google Store 등 에 등록된 마켓 상품(marketPid)의 구매를 요청 한다.
Request purchase of market product (marketPid) registered in App Store, Google Store, etc.


korean

iapPayload 의 경우 구매 요청에 대한 보충 정보로 구매 후 영수증 검증에서 확인할 수 있다.
프로모 코드 구매 처럼 앱 외부에서 구매 등의 경우에는 포함될 수 없게 된다.


english

iapPayload is supplementary information for the purchase request, and it can be checked in Receipt Verification after purchase,
but, in case of purchasing outside of the app, such as a promo code purchase etc., it can not be included in verification result.

Parameters

marketPid

Unique code registered on the App Store or Google Store.

iapPayload

A string containing supplementary information about the purchase request, specified by the developer.

listener

Result of API call