StoreKit2 - γϯϓϧͳίʔυ
τϥϯβΫγϣϯॲཧͷҙʂᶄ
ͦͷͨΊɺαʔόʔଆͰAPIΛϩοΫͯ͠ɺαʔόʔଆͷ࿈ଓܾͨ͠ࡁޙॲཧ͕ൃੜ͠ͳ͍Α͏
ʹରࡦͨ͠ɻ
Λߪೖͨ͠ͱ͖ɺαʔόʔଆͰܾࡁޙॲཧΛ͢Δ͕ɺ
ॏෳͯ͠৽نߪೖͷॲཧͯ͠͠·͍ͬͯͨɻ
AppleͷެࣜαϯϓϧίʔυʹɺߪೖʹΑΔτϥϯβΫγϣϯ listen͠ͳ͍ͱॻ͍͕ͯ͋ͬͨ...
// Iterate through any transactions that don't come from a direct call to `purchase()`.
https://developer.apple.com/documentation/storekit/in-app_purchase/implementing_a_store_in_your_app_using_the_storekit_api
A. ߪೖޙ
B. ΞϓϦىಈ࣌ʹ listen ͨ͠ Transactions.updates
όοΫΤϯυଆͷରԠ
App Store Server API
● αϒεΫใͷऔಘ
αϒεΫͷܾࡁޙॲཧͷͱ͖ɺoriginalTransactionId ͔ΒৄࡉใΛऔಘ͢ΔͨΊʹɺ
Լه API Λར༻ͨ͠ɻ
https://api.storekit.itunes.apple.com/inApps/v1/subscriptions/{transactionId}
https://developer.apple.com/documentation/appstoreserverapi/get_all_subscription_statuses
● τϥϯβΫγϣϯཤྺ
αϒεΫͷΞοϓάϨʔυ/μϯάϨʔυͷࡍʹɺաڈͷߪೖใ͕ඞཁͩͬͨͨΊɺ
Լه API Λར༻ͨ͠ɻ
https://api.storekit.itunes.apple.com/inApps/v1/history/{transactionId}
https://developer.apple.com/documentation/appstoreserverapi/get_transaction_history