/// <summary> /// Acknowledge in-app purchases. /// Developers are required to acknowledge that they have granted entitlement for all in-app purchases for their application. /// /// Warning! All purchases require acknowledgement. /// Failure to acknowledge a purchase will result in that purchase being refunded. /// For one-time products ensure you are using <see cref="ConsumeAsync"/> which acts as an implicit acknowledgement /// or you can explicitly acknowledge the purchase via this method. /// For subscriptions use <see cref="AcknowledgePurchase(AN_AcknowledgePurchaseParams, AN_iAcknowledgePurchaseResponseListener)"/>. /// Please refer to https://developer.android.com/google/play/billing/billing_library_overview#acknowledge for more details. /// </summary> /// <param name="params">Params specific to this acknowledge purchase request.</param> /// <param name="callback">Result of the acknowledge operation returned asynchronously through the callback.</param> public void AcknowledgePurchase(AN_AcknowledgePurchaseParams @params, Action <SA_iResult> callback) { AN_Java.Bridge.CallStaticWithCallback <SA_Result>( k_NativeBillingClient, "AcknowledgePurchase", callback.Invoke, HashCode, @params); }
/// <summary> /// Acknowledge in-app purchases. /// Developers are required to acknowledge that they have granted entitlement for all in-app purchases for their application. /// /// Warning! All purchases require acknowledgement. /// Failure to acknowledge a purchase will result in that purchase being refunded. /// For one-time products ensure you are using <see cref="ConsumeAsync"/> which acts as an implicit acknowledgement /// or you can explicitly acknowledge the purchase via this method. /// For subscriptions use <see cref="AcknowledgePurchase(AN_AcknowledgePurchaseParams, AN_iAcknowledgePurchaseResponseListener)"/>. /// Please refer to https://developer.android.com/google/play/billing/billing_library_overview#acknowledge for more details. /// </summary> /// <param name="params">Params specific to this acknowledge purchase request.</param> /// <param name="listener">Implement it to get the result of the acknowledge operation returned asynchronously through the callback.</param> public void AcknowledgePurchase(AN_AcknowledgePurchaseParams @params, AN_iAcknowledgePurchaseResponseListener listener) { AcknowledgePurchase(@params, listener.onAcknowledgePurchaseResponse); }