Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOS 카카오톡 인앱 구매 Storekit v2 적용기

kakao
November 01, 2024

iOS 카카오톡 인앱 구매 Storekit v2 적용기

#iOS #StoreKit 2 #InAppPurchase #KakaoTalk

카카오톡 인앱결제 프로세스를 StoreKit 1에서 StoreKit 2로 변경 적용 사례를 소개합니다.
StoreKit 2에 새로워진 기능 개발도구, 카카오톡 인앱 결제에 적용할 수 있는 신규 기능에 대해서 공유하고, 테스트 환경 및 기능 개선의 과정을 공유합니다.

발표자 : jaime.yoon, david.window

톡iOS에서 클라이언트 개발을 진행하고 있는 감성 개발자 데이비드와 제이미 입니다. 카카오톡의 스토어킷 2 적용 사례를 소개합니다.

kakao

November 01, 2024
Tweet

More Decks by kakao

Other Decks in Programming

Transcript

  1. What is StoreKit? What’s new in StoreKit 2 StoreKit for

    KakaoTalk Development Test Case How to use StoreKit 2
  2. What is StoreKit What’s new in StoreKit 2 StoreKit for

    KakaoTalk Development Test Case How to use StoreKit 2
  3. What’s new in StoreKit 2 StoreKit 2 Product Information about

    a product that you con fi gure in App Store Connect. iOS 15.0+ / iPadOS 15.0+ / Mac Catalyst 15.0+ / macOS 12.0+. tvOS 15.0+ / visionOS 1.0+ / watchOS 8.0+ / Xcode 13.0+ Transaction Information that represents the customer’s purchase of a product in your app. iOS 15.0+ / iPadOS 15.0+ / Mac Catalyst 15.0+ / macOS 12.0+ / tvOS 15.0+ / visionOS 1.0+ / watchOS 8.0+ / Xcode 13.0+
  4. What is StoreKit What’s new in StoreKit 2 StoreKit for

    KakaoTalk Development Test Case How to use StoreKit 2
  5. Talk Main Project IAPController purchaseRequest A - Interactor (ҳݒ) B

    - Interactor (ҳة) successModel 1VCMJD *OUFSOBM IAP Framework StoreKit for KakaoTalk - Framework ҳઑ
  6. IAPController IAP Framework A - Interactor (ҳݒ) B - Interactor

    (ҳة) A- Worker B - Worker StoreWorker (ੋজѾઁ) StoreKit for KakaoTalk - Framework ҳઑ
  7. IAPController IAP Framework A - Interactor (ҳݒ) B - Interactor

    (ҳة) A- Worker B - Worker StoreWorker (ੋজѾઁ) C - Interactor C - Worker StoreKit for KakaoTalk - Framework ҳઑ
  8. IAP Framework StoreKit2 - Handling Transactions - Check Entitlements 


    - Manage Subscriptions IAPController StoreKit for KakaoTalk - Framework ҳઑ
  9. What is StoreKit What’s new in StoreKit 2 StoreKit for

    KakaoTalk Development Test Case How to use StoreKit 2
  10. What is StoreKit What’s new in StoreKit 2 StoreKit for

    KakaoTalk Development Test Case How to use StoreKit 2
  11. How to use StoreKit 2 - ҳة ҙܻ জ੉ఎহ੉ੋজীࢲҳةҙܻӝמਸઁҕ showManageSubscriptions(in:)

    showManageSubscriptions(in:subscriptionGroupID:) ӝמ ҳة Ӓܛ ݾ۾ ֢୹ (ઁҕػ GroupIDী ೧׼ೞח) ҳة Ӓܛ੄ ҙܻ ചݶ ֢୹ ୭ࣗ ૑ਗ ߡ੹ iOS 15.0 iOS 17.0 ӝఋ അ੤ ٩݂௼ ز੘ উೣ
  12. How to use StoreKit 2 - StoreKitView StoreView ౠ੿ઁಿٜী؀ೠ੿ࠁܳࠁৈ઱חView 


    
 productID collectionਸాೠࢤࢿ Productё୓collectionਸాೠࢤࢿ 
 StoreView(ids: productIDs) { product in product.iconImage }
  13. How to use StoreKit 2 - StoreKitView ProductView ౠ੿ઁಿী؀ೠ੿ࠁܳࠁৈ઱ח7JFX 


    
 QSPEVDU*%ܳాೠࢤࢿ 1SPEVDUё୓ܳాೠࢤࢿ 
 ProductView(id: productID) { Image(uiImage: UIImage(named: "ProductIcon")!) .resizable() .frame(width: 100, height: 100) }
  14. How to use StoreKit 2 - StoreKitView ProductViewStyle ProductView੄झఋੌਸ૑੿ೞחmodi fi

    er ProductView(id: productID) { Image(uiImage: UIImage(named: "ProductIcon")!) .resizable() .frame(width: 100, height: 100) } .productViewStyle(CompactProductViewStyle())
  15. How to use StoreKit 2 - StoreKitView ProductViewStyle Compact Regular

    Large Custom CompactProductViewStyle() RegularProductViewStyle() LargeProductViewStyle() CustomProductViewStyle()
  16. How to use StoreKit 2 - StoreKitView SubscriptionStoreView ҳة࢚ಿٜী؀ೠ੿ࠁܳࠁৈ઱חView 


    
 groupIDܳాೠࢤࢿ productID collectionਸాೠࢤࢿ Productё୓collectionਸాೠࢤࢿ
  17. How to use StoreKit 2 - StoreKitView StoreButton StoreViewীࠁઑߡౡٜ੄֢୹ৈࠗܳࢸ੿ೞח modi

    fi er ButtonKind StoreView SubscriptionStoreView restorePurchase O O cancellation O O redeemCode X O signIn X O policies X O
  18. How to use StoreKit 2 - Testing in Xcode Xcodeജ҃ীࢲStoreKitపझ౟ܳоמೞѱ೧઱חCon

    fi guration AppStoreConnectীઁಿਸ١۾ೡ೙ਃоহ਺ ֎౟ਕ௼ীোѾغয੓૑ঋইبपઁੋজҳݒزࢶਸदޯۨ੉࣌ೡࣻ੓਺ ҳةӝр ੋজҳݒपಁா੉झ١ৈ۞ઑѤٜਸ੐੄۽ઑ੿ೡࣻ੓਺ StoreKit Con fi guration
  19. How to use StoreKit 2 - Testing in Xcode 

    ࢜۽਍౵ੌਸࢤࢿ cmd+n ೞח࢚ടীࢲStoreKit Con fi guration Fileఋੑࢶఖ  Con fi guration੉ܴੑ۱߂sync(AppStoreConnectীৢۄр࢚ಿਸӒ؀۽ࢎਊೡѪੋ૑ ৈࠗ୓௼ StoreKit Con fi guration - Con fi guration ࢤࢿ
  20. How to use StoreKit 2 - Testing in Xcode StoreKit

    Con fi guration - Con fi guration ҳࢿ - Con fi guration Settings Storefront Localization Purchase Option StoreKit Failure١ ৈ۞ ઑѤٜਸ ࣁ౴ - Productܳ ୶оೞѱ غݶ п Product ఋੑ߹۽ ੿ࠁܳ ࣁ౴
  21. How to use StoreKit 2 - Testing in Xcode StoreKit

    Con fi guration - Con fi guration ੸ਊ - Edit Scheme > Run > Options > StoreKitCon fi guration - StoreKitCon fi guration ੸ਊद Con fi gurationীӝ߈ೠ Xcode ജ҃ীࢲ StoreKit੉ز੘ೞݴ AppStoreConnectী١۾೧ك StoreKit ઁಿٜ਷ઁ৻
  22. How to use StoreKit 2 - Testing in Xcode জझషযࢲߡ৬োѾহ੉౟ے੥࣌ҙ۲పझ౟ܳೡࣻ੓חبҳ

    
 
 - Debug > StoreKit > ManageTransactions - StoreKitCon fi guratioOਸ੸ਊೠXcodeపझ౟ജ҃ীࢲز੘ Transaction Manager
  23. How to use StoreKit 2 - Testing in Xcode Transaction

    Manager - ࢤࢿػ Transaction ઑഥ
  24. How to use StoreKit 2 - Testing in Xcode Transaction

    Manager - ࢚ಿജࠛ ౟ے੥࣌࢏ઁ
  25. 2"