0

ios用户帐户密码也会弹出。如果在应用程序仍然打开时再次调用,则不会发生这种情况,但如果应用程序关闭并重新打开,则会重复。

谢谢

4

1 回答 1

0

听起来您有未完成的购买需要完成。

购买将保持挂起状态,直到您的应用程序调用完成。这是为了确保您的应用程序处理和验证购买。

InAppBilling.service.finishPurchase当您处理购买并交付产品或处理取消/失败时,您应该致电:

https://gist.github.com/marchbold/851359b9e456e1a85d65#file-distriqt-extension-inappbilling-makepurchase-as

private function purchase_cancelledHandler( event:PurchaseEvent ):void
{
    // This transaction was cancelled so you should notify your user and finish the purchase
    trace( "purchase cancelled" + event.errorCode );
    if (event.data && event.data.length > 0)
        InAppBilling.service.finishPurchase( event.data[0] );
}

在启动时,您可以在SETUP_SUCCESS事件发生后检索待处理的购买:

private function setupSuccessHandler( event:InAppBillingEvent ):void
{
    var pending:Array = InAppBilling.service.getPendingPurchases();
    // Iterate over and handle as required
}

http://docs.airnativeextensions.com/inappbilling/docs/com/distriqt/extension/inappbilling/InAppBilling.html#getPendingPurchases()

于 2016-05-20T01:14:37.697 回答