ΞϓϦ͔Β໌ࣔతʹऴྃͤ͞Δ • ABEMAίΠϯߪೖͷτϥϯβΫγϣϯɺABEMAͷαʔόʹͯϢʔβͷίΠϯ༩Λߦͬ ͨͷͪʹ SQPaymentQueue.finishTransaction(_:) Λݺͼग़͢͜ͱͰऴྃͤ͞Δ ◦ > After you finish a transaction, don’t take any actions on it or do any work to deliver the product. If any work remains, your app isn’t ready to finish the transaction. (※1) • ϢʔβͷٻͷΈߦΘΕɺίΠϯ͕༩͞Εͳ͍ঢ়ଶΛ͙ • ফܕԿͰߪೖͰ͖ɺաڈʹߪೖͨ͜͠ͱ͕͋ΔΛ࠶ߪೖͨ͠߹ɺϨγʔτͷ ߪೖཤྺ্͕ॻ͖͞ΕΔɻաڈͷߪೖཤྺΛࢀরͰ͖ͳ͘ͳΔՄೳੑ͕͋ΔͨΊҙ͕ඞཁ
SQPaymentQueue.finishTransaction(_:) ͷΤϥʔ ◦ Throwing function ʹͳ͍ͬͯͳ͍ͷͰҙ ◦ > In rare circumstances, this call might fail, and you'll receive updates for that transaction again. (※1) (※1) https://developer.apple.com/documentation/storekit/skpaymentqueue/1506026-transactions
ΞϓϦىಈޙ UIApplicationDelegate.application(_:didFinishLaunchingWithOptions:) ʹ SKPaymentTransactionObserver.paymentQueue(_:updatedTransactions:) Λར༻͠ ͯະྃτϥϯβΫγϣϯΛड͚औΔʢࢹ͢ΔʣΑ͏ʹͨ͠ ◦ Appleਪ (※1) • Before ◦ ΞϓϦىಈɾόοΫϑΥΞɾίΠϯߴදࣔ࣌ʹ SQPaymentQueue.transactions Λར ༻ͯ͠ະྃτϥϯβΫγϣϯΛड͚औΔ ▪ > The value of this property is undefined when there are no observers attached to the payment queue. (※2) (※1) https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/setting_up_the_transaction_observer_for_the_payment_queue (※2) https://developer.apple.com/documentation/storekit/skpaymentqueue/1506026-transactions