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

react-native-unimodulesを用いてのApp内課金実装

 react-native-unimodulesを用いてのApp内課金実装

react-native-unimodulesを用いてのApp内課金実装についてです

Yu Watanabe

March 04, 2021
Tweet

More Decks by Yu Watanabe

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ(1) Θͨͳ΂Ώ͏ ▸ ॴଐ ▸ גࣜձࣾg&h CTO ▸ Web /

    ΞϓϦΛझຯͰެ։ ▸ ࢓ࣄ಺༰ ▸ αʔό / ϑϩϯτ / ΞϓϦ / Web / શ෦ ▸ ΞΧ΢ϯτ ▸ Twitter : @hmktsu ▸ Github : @watanabeyu
  2. ࣗݾ঺հ(2) ▸ https://www.gandh.jp ▸ 6໊(ΤϯδχΞ͸1ਓ) ▸ ετϦʔτΧϧνϟʔ × ITͳμϯεαʔϏεΛӡӦ ▸

    https://dancewith.jp ▸ ετϦʔτμϯεͷΦϯϥΠϯϨοεϯΞϓϦ ▸ react-native + firebase + TypeScript + bitrise + NextJS ▸ prisma + GraphQL + Electron + ffmpeg ▸ TypeScriptͰ౷Ұͯ͠ۀ຿ޮ཰Խ ▸ εχʔΧʔؔ܎ͷΞϓϦͷཪଆͰճͯ͠ΔγεςϜ ▸ TypeScript + Node + puppeteer + firebaseͰ࡞੒ ▸ ΞϓϦ಺Ұ෦ػೳΛผΞϓϦͱͯ͠react-nativeͰ࡞੒த
  3. APP಺՝ۚʹ͍ͭͯ(1) ʙDANCE WITHʹ͓͚Δ࣮૷ʙ ▸ ੍ֹ݄ͷαϒεΫ(୯ൃ՝ۚ͸࣮૷͓ͯ͠Βͣ) ▸ DANCE WITH͸࠷ॳ͸iOS/Androidͱ΋ʹStripeʹ࣮ͯ૷ ▸ 2020೥8݄ʙ11݄຤·Ͱ͸OK͕ͩͬͨ12݄͔ΒϦδΣΫτ

    ߋ৽Ͱ͖ͳ͘ͳΔͷ͸ࠔΔͷͰ ͜ΕΛػʹApp಺՝ۚʹมߋ ͪͳΈʹStripeͷ࣮૷࣌1ൃ໨ͷ৹ࠪͰམͱ͞Ε͚ͨͲ ಈըετϦʔϛϯάͰແྉίϯςϯπ΋े෼͋Δ͔Β ͬͯ͜ͱͰ৹ࠪ௨͚ͬͨͲɺ12݄͔Β͸ͦΕͰ΋ԡ͠௨ͤͣ…
  4. APP಺՝ۚʹ͍ͭͯ(3) ʙEXPO(MANAGED WORKFLOW)Ͱͷ࣮૷ʙ ▸ StripeͰαϒεΫ࣮૷Λͯ͠΋ޙ͔Β৹ࠪͰམͱ͞ΕΔՄೳੑ͕͋Δ ▸ NetflixΈ͍ͨʹձһొ࿥ͳͲશͯWebͰ΍Δʹ΋DXͱ͔࣮૷ίετ͕໰୊ʹͳΔ ▸ react-native-iap΋expo-in-app-purchase΋ExpoͰ͸࢖༻Ͱ͖ͣ(ཁeject) ▸

    ExpoΛeject͢ΔͱࣗಈͰBare WorkflowͱͳΔͷͰexpo-in-app-purchaseʹ͢Δͷ͕Α͍ ▸ ※ͪͳΈʹ྆ऀͱ΋Native෦෼Λ͍͡Δ͜ͱ͸ͳ͍ͷͰ࣮ࡍ͸ͲͪΒͰ΋ߏΘͳ͍ EjectΛ࣮ͯ͠૷͢Δඞཁ͕͋Δ
  5. ·ͱΊ ▸ ExpoΛ࢖͍ͬͯͯAPP಺՝ۚΛ͍ͨ͠ͳΒ͹Bare workflowʹ͢Δ ▸ StripeͰڐ͞ΕΔύλʔϯ΋͋Δ͚Ͳ΋جຊతʹ͸ڐ͞Εͳ͍ͱࢥ͏΂͖ ▸ ՝ۚͷॲཧ͸ωΠςΟϒ͍͡Βͳ͍͠ҙ֎ͱ؆୯ ▸ αϒεΫͷ՝ۚεςʔλεΛ֬ೝ͢Δͷ͸ҎԼͷ2ͭ

    ▸ ΞϓϦΛ։͍ͨͱ͖΍ɺϢʔβεςʔλεΛ֬ೝ͢ΔͳͲͳͲ ▸ webhookͰϢʔβଆͷαϒεΫղ໿ͳͲΛݕ஌ αϒεΫΛ࡞Γ͍ͨͷͰ͋Ε͹ආ͚ͯ͸௨Εͳ͍ͷͰ ࢥ͍੾ͬͯeject࣮ͯ͠૷͠·͠ΐ͏