IAP.completeProductGrant
Feature description
Send a message to the app that product grant processing has been completed. Used to indicate that the product grant for an order whose payment has been completed has finished successfully.
The parameter is
{ params: { orderId } }Preserve nesting.
Toss app Android/iOS 5.233.0 It can be used on versions above. If called in an unsupported version, UNSUPPORTED_APP_VERSION an error occurs.
Type
IAP.completeProductGrant(args: { params: { orderId: string } }): Promise<boolean>;Params
{
params: {
orderId: string;
}
}Response
Whether the grant is complete booleanreturns it as.
Error
The error code is the error.code value.
UNSUPPORTED_APP_VERSION
If the running version of the Toss app doesn't support this feature, it occurs immediately upon call. IAP.completeProductGrant.isSupported()Check in advance with error.messageand, if it occurs, show the user the (update guidance message).
Example code
Was this helpful?